Prepare gasless accept (pool model)

POST /api/v1/mystery/buyback/:token/accept/prepare packs:read

POOL MODEL ONLY. Returns everything the HOLDER needs to accept the active offer gaslessly: the EIP-712 typed data to sign, whether the one-time NFT approval is still owed (with the ready-to-send call if so), and a self_submit call for holders who would rather send acceptOffer themselves. receiver is read from the LIVE on-chain owner, not the offer's stored target, so a card that changed hands since the offer was signed prepares for its current holder.

Try it POST /api/v1/mystery/buyback//accept/prepare

These inputs are shared across all docs pages, so an id entered here carries over.

request body
object · 0 keys
{}
response

Not run yet. Press Run to make a live call against https://service.rip.fun (through this demo's server-side proxy; the API key never reaches the browser).

tracks the inputs above
curl -X POST 'https://service.rip.fun/api/v1/mystery/buyback//accept/prepare' \
  -H 'X-API-Key: rip_…' \
  -H 'Content-Type: application/json' \
  -d '{}'

Request fields

FieldTypeRequiredDescription
item_typestringCARD | GRADED_CARD disambiguation

Response fields (data)

FieldDescription
typed_data{ domain, types, primaryType: OfferRequest, message } — hand to eth_signTypedData_v4
nft_approval.approved / callWhether setApprovalForAll is still needed, and the transaction to send if so
self_submit.callacceptOffer calldata for a holder submitting on their own gas instead
receiver / deadline / price_usdc / seller_receives_usdcWho gets paid, until when, and how much

Errors

StatusCodeWhen
404no_active_offerno unexpired offer exists for this token

See Errors for the response envelope and the full code list.