Skip to content

Get Moment Info

This page documents the API endpoint for retrieving detailed information about a Moment on the In Process protocol, including onchain moment data, sales configuration, metadata, and moment admins.

Endpoint

GET https://inprocess.world/api/moment

Query Parameters

NameTypeRequiredDefaultDescription
collectionAddressstringYesThe contract address of the Moment
tokenIdstringYesThe token ID of the Moment
chainIdstringNo8453Chain ID of the collection (default: Base, 8453)

Example Requests

cURL
# With chainId (optional, defaults to 8453)
curl "https://inprocess.world/api/moment?collectionAddress=0x06a701Ae65582B92Af48cDff45a8B20DcA3714cA&tokenId=1&chainId=8453"
 
# Without chainId (uses default: 8453)
curl "https://inprocess.world/api/moment?collectionAddress=0x06a701Ae65582B92Af48cDff45a8B20DcA3714cA&tokenId=1"

Example Response

{
  "uri": "ar://0rs6Y23p-v19UC6VQTD6xvg-srCKFdUc7ngZwTWEDKM",
  "owner": "0x29b6674c1562e31EdFd9709D9576e8E5F1e68d01",
  "saleConfig": {
    "type": "erc20Mint",
    "pricePerToken": "100000000000000000",
    "saleStart": 1717200000,
    "saleEnd": 18446744073709551615,
    "currency": "0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
  },
  "momentAdmins": ["0x29b6674c1562e31EdFd9709D9576e8E5F1e68d01"],
  "metadata": {
    "name": "My Moment",
    "image": "ar://U2PRZhy-S_Lrz_AMx-Qh2n6x8Lm3smO9SsLuno1DXRU",
    "description": "A description of the moment",
    "content": {
      "mime": "audio/mpeg",
      "uri": "ar://z5RXUDCbzwHVJ49emY7XteJScYYP4baBxgVeaqFM3rM"
    }
  }
}

SalesConfig Reference

The saleConfig object in the response contains the sales configuration for the Moment. This includes pricing, sale timing, and minting limits.

To learn more about SalesConfig, go to SalesConfig Reference.