/api/v1/mystery/sellback/submit packs:buyback Records a broadcast sell-back. The payout is decoded from the on-chain CardSellExecuted log, never taken from your request — this number is the deduction in your net revenue, so it is read from the chain rather than claimed. CardOS indexes the same event independently; whichever lands first wins and the other is a no-op, so re-submitting the same tx is always safe.
POST /api/v1/mystery/sellback/submit write {
"transaction_hash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}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/sellback/submit' \
-H 'X-API-Key: rip_…' \
-H 'Content-Type: application/json' \
-d '{"transaction_hash":"0x0000000000000000000000000000000000000000000000000000000000000000"}' | Field | Type | Required | Description |
|---|---|---|---|
transaction_hash | string | yes | The mined sell-back transaction |
wallet_address | string | — | The seller, for your own correlation |
| Status | Code | When |
|---|---|---|
| 400 | tx_reverted | the transaction failed on-chain |
| 400 | tx_unverified | not found, or not a combo-pool sell-back — submit after it is mined |
| 403 | seller_mismatch | the on-chain seller is not one of your end users |
See Errors for the response envelope and the full code list.