{"uid":"cap_hdLr_COY1_ryv9Uh9imFb","slug":"delx-commerce-x402-accepts-rank-8bde4ddd","name":"Delx Commerce X402 Accepts Rank","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/x402-accepts-rank?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"accepts":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Accepts supplied to X402 Accepts Rank; used only for this bounded calculation and processed in memory without retention."},"preferred_assets":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Preferred Assets supplied to X402 Accepts Rank; used only for this bounded calculation and processed in memory without retention."},"preferred_networks":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Preferred Networks supplied to X402 Accepts Rank; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"ranked":[{"asset":"USDC","amount":"1000","network":"eip155:8453"},{"asset":"USDC","amount":"1000","network":"eip155:1"}],"selected":{"asset":"USDC","amount":"1000","network":"eip155:8453"}},"schema":"delx/util-x402-accepts-rank/v1","status":"pass","evidence":{"retained":false,"input_sha256":"68f07fccda032de91280d8721b0b24830cc41f95e6d3cac4b3f05a715109a84b","external_calls":0},"operation":"delivery_contract:x402_accepts_rank"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z2RmAqVmQYNsrd3FYZp5C","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks and selects the best payment option from an array of x402 'accepts' objects based on preferred assets and networks","exampleAgentPrompt":"I have an x402 accepts list from a server response — can you rank those options and pick the best one, preferring USDC on the Base network (eip155:8453)?","exampleUseCases":[{"title":"Selecting best network for agent payment","prompt":"I got an x402 payment response with multiple accepts options including USDC on Base and USDC on Ethereum mainnet — rank them and tell me which one to use, I prefer Base."},{"title":"Filtering accepts by preferred asset","prompt":"Here's an array of x402 accepts objects from a server. I only want to pay with USDC — rank these and select the best matching entry for me."},{"title":"Multi-network wallet prioritization","prompt":"My agent has x402 accepts with options across Base, Solana, and Ethereum. I prefer Base first, then Solana — can you rank and select the best payment option from this list?"}],"resultDescription":"Returns a ranked array of payment options (each with asset, amount, and network) plus a single selected best option. Also includes evidence metadata confirming no data was retained and no external calls were made, along with a schema version and operation identifier.","failureModes":["Empty or malformed accepts array returns no ranked results","Unsupported network or asset identifiers may result in no selection","Exceeding 256 items in accepts or preferred arrays may cause rejection","Invalid object structure within accepts items may cause computation failure"],"whenToPreferThis":"Use this endpoint when an AI agent receives an x402 payment challenge with multiple accept options and needs to deterministically select the best payment method based on asset and network preferences. Ideal for agents operating in multi-chain environments who need to resolve payment routing without hardcoding logic. Prefer this over manual filtering when the accepts list is dynamic or comes from an untrusted server response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:22:59.699Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-accepts-rank-8bde4ddd"}