Price a selection against current chain state
Re-reads every selected account, prices each item per charge in lamports, and says how many transactions and wallet approvals the whole selection takes. It reads the wallet as a scan does, with the same limits: a program or system address, or a wallet a scan refuses for its size, is `wallet_too_large`, and a large wallet the server is too busy to scan right now is `scan_busy` (503, with Retry-After).
/v1/transactions/quoteRe-reads every selected account, prices each item per charge in lamports, and says how many transactions and wallet approvals the whole selection takes. It reads the wallet as a scan does, with the same limits: a program or system address, or a wallet a scan refuses for its size, is wallet_too_large, and a large wallet the server is too busy to scan right now is scan_busy (503, with Retry-After).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/transactions/quote" \ -H "Content-Type: application/json" \ -d '{ "wallet": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "items": [ { "assetId": "string", "action": "close", "expectedAmount": "1000000", "acknowledged": true } ], "donationBps": 0, "burner": "ember-fixture", "referralCode": "7KQ2M9XA", "referralShare": "K7M2Q9XA", "transactionVersions": [ 0 ], "maxTransactionsPerApproval": 1, "maxApprovals": 1 }'{ "wallet": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "lines": [ { "assetId": "string", "action": "close", "switchedFrom": "close", "reclaimLamports": "2039280", "appliedOverride": { "configId": "override_01j3sa8pvcfp79z85hrb9y9xd6", "configVersion": 0, "overrideId": "feerate_01j3sa8pvcfp79z85hrb9y9xd6", "overrideVersion": 0, "name": "Acme", "messageToUser": "string", "rate": { "type": "percent_of_reclaim", "bps": 0 } }, "feeQuote": "string", "charges": [ { "kind": "fee", "code": "token_account_closure", "rate": { "type": "percent_of_reclaim", "bps": 0 }, "baseLamports": "2039280", "lamports": "2039280", "recipient": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "recipientKind": "platform" } ], "netLamports": "2039280", "unwrapLamports": "2039280", "depositLamports": "2039280", "strayLamports": "2039280", "missed": [ { "recipientKind": "burner", "lamports": "2039280", "reason": "cannot_receive" } ] } ], "skipped": [ { "assetId": "string", "reason": "not_found", "failure": { "program": "system", "code": 0 } } ], "totals": { "reclaimLamports": "2039280", "feeLamports": "2039280", "donationLamports": "2039280", "networkFeeLamports": "2039280", "netLamports": "2039280", "strayLamports": "2039280" }, "transactionVersion": 0, "transactionCount": 0, "approvals": 0, "deferred": [ "string" ], "feeScheduleVersion": "string", "quotedAt": "2026-10-21T12:00:00.000Z", "epoch": 0, "beneficiary": { "orgId": "org_01j3sa8pvcfp79z85hrb9y9xd6", "slug": "acme", "name": "Acme", "payoutAddress": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "feeShare": true, "donations": true, "ready": true }, "referrer": { "code": "string", "address": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "ready": true }, "warnings": [ { "code": "donation_not_taken", "message": "string", "lamports": "2039280" } ], "confirm": { "irreversible": [ { "assetId": "string", "kind": "empty_account", "action": "close", "consequence": "stops_working_forever", "programId": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "checks": { "programId": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "checkedAt": "2026-10-21T12:00:00.000Z", "ownedAccounts": 0, "ownedLamports": "2039280", "lastUsedAt": "2026-10-21T12:00:00.000Z", "warnings": [ { "code": "owned_accounts_hold_sol", "accounts": 0, "lamports": "2039280", "lastUsedAt": "2026-10-21T12:00:00.000Z" } ], "complete": true } } ], "programs": [ "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV" ], "holdRequired": true }}One recorded transaction with its fee snapshot GET
A transaction /submit recorded, by its signature: its round, status, slot and fee snapshot. Public: the same facts are on chain.
Give one approval's transactions a fresh blockhash POST
Call it just before the wallet opens: the blockhash's window (150 blocks, about 40 seconds on mainnet) then goes to the person and the sends, not to the build. Stamping the same transactions again, after an expiry, is how to ask again. A round can be stamped for `TX_ROUND_TTL_SECONDS` (300) after it was prepared; then `round_stale`.