{"agent":{"method":"Include method in the posted trades for an explicit selection. Use its methodEngines entry for the signed quote and keep the identical request for collection.","prepare":"Create a random payment identifier of 16–128 letters, digits, underscores or hyphens. For agent collection, generate 32 random bytes and add their lowercase SHA-256 hex digest as resultKeySHA256 to the request.","privacy":"Only payment terms and the operation-bound nonce go on Base. The merchant stores submitted data and the workpaper privately when processing a signed order. Keep the result key with the requesting agent.","quote":"POST the request as application/json to checkout. A payable offer returns HTTP 402 and Payment-Required. Use chainiq-payment-id for your order and keep that identifier through payment and recovery. HTTP 409 with status quote-only is an unsigned preview.","recovery":"After submission, POST {payer,paymentID,request} to result with chainiq-result-key containing the original 32 random bytes as 64 hex characters. The paying wallet can alternatively provide SIWx proof. HTTP 202 means pending. HTTP 200 contains the CSV and chainiq-result-receipt.","signing":"For a connected EOA, paymentTerms(manifest, offer, request, lowercasePayer, paymentID, unixSeconds) returns authorization and typed EIP-712 data. Sign typed with eth_signTypedData_v4. paymentPayload(offer, paymentID, authorization, signature) creates the x402 v2 payload. Base64-encode its JSON in Payment-Signature and POST the identical trades.","signingModule":"https://chainiq-fifo-59967844018.us-east1.run.app/checkout.js","transferLookup":"If the wallet shows a transfer and the report is pending, add its Base transaction hash in the chainiq-settlement-transaction header on the same authenticated result request. This only looks up the original payment.","walletHandoff":{"engine":"methodEngines[request.method or FIFO]","paymentID":"your payment identifier","recipient":"terms.payTo","request":"the submitted JSON object","resource":"absolute checkout URL","schema":"chainiq.agent-checkout.v1"}},"availability":"open","checkout":"https://chainiq-fifo-59967844018.us-east1.run.app/api/v1/calculate-tax","engine":"e10a952bd0a2e09002312770e4fc897d6c0938671418fd5bb0c2b453763cecfc","example":{"authorized":true,"brokerReporting":"no-broker-form","openingAsOf":"2026-01-02T00:00:00Z","openings":[{"acquired":"2025-03-03","asset":"BTC","basisUSD":"4000","quantity":"0.5"}],"schema":"chainiq.fifo-trades.v1","taxYear":2026,"trades":[{"asset":"BTC","feeUSD":"1.25","id":"fictional-paper-sale-alpha","priceUSD":"12345.67","quantity":"0.125","side":"sell","time":"2026-02-10T12:00:00Z"}]},"input":{"amounts":"Unsigned decimal strings. Give an explicit zero fee for a fee-free trade.","brokerReporting":"no-broker-form covers disposals with no broker form. Other reporting categories are outside this offer.","currency":"USD","defaultMethod":"FIFO","maxRequestBytes":65536,"method":"Optional method string. Choose FIFO, LIFO, HIFO or OPTIMIZED_HIFO. Omitting it selects FIFO.","methods":["FIFO","LIFO","HIFO","OPTIMIZED_HIFO"],"openingAsOf":"UTC timestamp before all submitted trades. Include one known opening lot per traded asset.","openings":"Supply asset, quantity, total basisUSD and acquisition date. Explicit zero holdings have zero basis.","output":"One CSV for the selected method. Comparison rows identify the chosen order and the FIFO filing identity.","pricePerMethod":"0.05 native USDC on Base for one selected workpaper.","sameTimeOrder":"For each tie in asset and timestamp, supply its trade IDs in the authorized order.","taxYear":[2025,2099],"trades":"Supply a unique id, buy or sell, asset, UTC time, quantity, USD unit price and total USD fee."},"maxTrades":128,"methodEngines":{"FIFO":"e10a952bd0a2e09002312770e4fc897d6c0938671418fd5bb0c2b453763cecfc","HIFO":"400dcdd0ada0525a02216489d9710cb740055601fc85bb2d6a7505859d0eb57e","LIFO":"400dcdd0ada0525a02216489d9710cb740055601fc85bb2d6a7505859d0eb57e","OPTIMIZED_HIFO":"400dcdd0ada0525a02216489d9710cb740055601fc85bb2d6a7505859d0eb57e"},"nonceExtension":"chainiq-x402-operation-nonce-v1","result":"https://chainiq-fifo-59967844018.us-east1.run.app/api/v1/result","resultAccessSeconds":3600,"schema":"chainiq.fifo-trades.v1","settlement":"base-finalized","supportedAssets":["BTC","ETH","SOL"],"terms":{"amount":"50000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"assetTransferMethod":"eip3009","name":"USD Coin","version":"2"},"maxTimeoutSeconds":60,"network":"eip155:8453","payTo":"0xeD6B743f9A993d7B813DEEF3d479CAC6804f958A","scheme":"exact"},"wallet":"https://chainiq-fifo-59967844018.us-east1.run.app/checkout"}