Skip to main content
POST
/
moment
/
create
Create a Moment
curl --request POST \
  --url https://inprocess.world/api/moment/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": {
    "tokenMetadataURI": "<string>",
    "createReferral": "<string>",
    "salesConfig": {
      "type": "fixedPrice",
      "pricePerToken": "<string>",
      "saleStart": "<string>",
      "saleEnd": "<string>",
      "currency": "<string>"
    },
    "mintToCreatorCount": 123,
    "payoutRecipient": "<string>",
    "maxSupply": 2
  },
  "account": "<string>",
  "contract": {
    "address": "<string>",
    "name": "<string>",
    "uri": "<string>"
  },
  "splits": [
    {
      "address": "<string>",
      "percentAllocation": 50
    }
  ]
}
'
{
  "contractAddress": "<string>",
  "tokenId": "<string>",
  "hash": "<string>",
  "chainId": 123
}

Body

application/json
token
object
required
account
string
required

Creator's address

contract
object

Contract object. If address is provided, uses existing collection. If name and uri are provided, creates new collection.

splits
object[]

Optional revenue splits configuration. Must have at least 2 recipients and sum to 100%

Minimum array length: 2

Response

Successful response

contractAddress
string
required

The address of the collection (newly created or existing)

tokenId
string
required

The token ID of the created moment

hash
string
required

Transaction hash of the creation operation

chainId
integer
required

Chain ID where the transaction was executed