Collect a Moment
This page documents the API endpoint to collect a Moment on the In Process protocol.
Endpoint
POST https://inprocess.fun/api/moment/collect
Request Body
Send a JSON object with the following fields:
{
"token": {
"tokenContractAddress": string, // Collection address
"tokenId": string // TokenId of collection
},
"account": string, // Social wallet address or artist wallet address
"amount": number, // Amount to be collected
"comment": string // Comment
}
Example Request
cURL
curl -X POST https://inprocess.fun/api/moment/collect \
-H "Content-Type: application/json" \
-d '{
"token": {
"tokenContractAddress": "0x297F21AAc502571db2c7dBFD271E68Dae7F2cE1E",
"tokenId": "1"
},
"account": "0x323e8bcb41ae2454c3f4899e094c599aab6b84bc",
"amount": 1,
"comment": "in•process!!!"
}'
Example Response
{
"hash": "0xTransactionHash",
"chainId": 8453 | 84532
}