/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.
POST /api/v1/mystery/buyback//accept/prepare These inputs are shared across all docs pages, so an id entered here carries over.
{}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).
curl -X POST 'https://service.rip.fun/api/v1/mystery/buyback//accept/prepare' \
-H 'X-API-Key: rip_…' \
-H 'Content-Type: application/json' \
-d '{}' | Field | Type | Required | Description |
|---|---|---|---|
item_type | string | — | CARD | GRADED_CARD disambiguation |
data)| Field | Description |
|---|---|
typed_data | { domain, types, primaryType: OfferRequest, message } — hand to eth_signTypedData_v4 |
nft_approval.approved / call | Whether setApprovalForAll is still needed, and the transaction to send if so |
self_submit.call | acceptOffer calldata for a holder submitting on their own gas instead |
receiver / deadline / price_usdc / seller_receives_usdc | Who gets paid, until when, and how much |
| Status | Code | When |
|---|---|---|
| 404 | no_active_offer | no unexpired offer exists for this token |
See Errors for the response envelope and the full code list.