{"uid":"cap_-rSwQyXOTO5rDr-jkWGFw","slug":"near-agent-pay-gate-f359311c","name":"NEAR Agent Pay Gate","description":"The NEAR counterpart of agent-pay-gate. Composes the recipient's account posture (does it exist, is it a contract, control flags) with the NEP-141 transfer preflight into one GO/HOLD/STOP before an agent sends. On NEAR a mistyped account is unrecoverable and a token transfer silently fails unless the recipient has storage_deposit — this catches both ahead of time. Pass token (+amount) for a token transfer, near= for native-amount sizing. Not financial advice.","url":"https://402.com.tr/api/x402/near-agent-gate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["to"],"properties":{"to":{"type":"string","description":"NEAR account you are about to pay"},"near":{"type":"string","description":"Native NEAR amount (optional, for sizing)"},"token":{"type":"string","description":"NEP-141 token (optional)"},"amount":{"type":"string","description":"Token amount (optional)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZrwPDN2rDp86uKJ8-Y8N2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-flight check before sending NEAR or NEP-141 tokens: verifies recipient account existence, contract status, and storage_deposit readiness in one GO/HOLD/STOP decision.","exampleAgentPrompt":"Before I send 50 USDC.e to alice.near, run the NEAR pay gate to make sure the account exists, isn't blocked, and has storage deposit set up — give me a GO or STOP verdict.","exampleUseCases":[{"title":"Safe agent-to-user NEAR payout","prompt":"I'm about to send 10 NEAR to bob.testnet as a reward — can you check the pay gate first to make sure that account exists and is ready to receive, so the transfer doesn't get lost?"},{"title":"NEP-141 token transfer preflight","prompt":"Before my agent sends 500 wNEAR tokens to payments.near, run the NEAR Agent Pay Gate to confirm the account has storage deposit for wNEAR and the transfer won't silently fail."},{"title":"Bulk recipient validation for airdrop","prompt":"I need to send NEP-141 tokens to dao.near — check that account through the NEAR pay gate and tell me if it's a contract, whether it's flagged, and if I'll get a GO on the transfer."}],"resultDescription":"Returns a GO, HOLD, or STOP verdict combining: whether the recipient NEAR account exists, whether it is a smart contract, any control/freeze flags, and whether the recipient has the required storage_deposit for the specified NEP-141 token — all in a single pre-send decision.","failureModes":["Recipient account ID not found on NEAR (account does not exist — STOP)","NEP-141 token contract address is invalid or not a fungible token","Recipient lacks storage_deposit for the specified token (HOLD/STOP)","Amount parameter missing or malformed — validation cannot size the transfer","Network connectivity issue reaching NEAR RPC — indeterminate result","Payment of $0.02 USDC not fulfilled — x402 payment required error"],"whenToPreferThis":"Use this endpoint when an AI agent is about to programmatically send NEAR native tokens or NEP-141 tokens and needs a single authoritative pre-flight check. Prefer it over manual RPC calls when you need both account existence verification and storage_deposit readiness in one step, since on NEAR a mistyped account is unrecoverable and a NEP-141 transfer to an unprepared account silently fails. Especially valuable in automated payment workflows where human review is absent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:37:21.366Z","isFirstParty":false,"canonicalSlug":"near-agent-pay-gate-f359311c"}