{"uid":"cap_LuRgl15y-X_nBnBMZCsp5","slug":"agent-risk-desk-near-account-counterparty-risk-d2aa8a7b","name":"Agent Risk Desk – NEAR Account Counterparty Risk","description":"Counterparty-risk verdict (allow, warn or block, with reasons) for a NEAR account, for use before paying it. Checks the OFAC SDN list and operator deny-lists, whether the account exists, its age, its contract code and code changes in the last 72 h, global contracts whose publisher can change them, and, with an Allowance vault, the vault denylist and payment history.","url":"https://x402-services.soldano.workers.dev/v1/risk/near?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"vault":{"type":"string","pattern":"^(([a-z\\d]+[-_])*[a-z\\d]+\\.)*([a-z\\d]+[-_])*[a-z\\d]+$","maxLength":64,"minLength":2,"description":"Allowance vault: adds its on-chain denylist and its payment history with this account"},"account":{"type":"string","pattern":"^(([a-z\\d]+[-_])*[a-z\\d]+\\.)*([a-z\\d]+[-_])*[a-z\\d]+$","maxLength":64,"minLength":2,"description":"NEAR account id, e.g. alice.near or a 64-hex implicit account"},"network":{"enum":["mainnet","testnet"],"type":"string","description":"NEAR network; default: testnet for *.testnet accounts, mainnet otherwise"},"minAgeDays":{"type":"number","maximum":3650,"minimum":0,"description":"warn when the account is younger than this (default 7)"},"codeWindowHours":{"type":"integer","maximum":720,"minimum":1,"description":"warn when the contract code changed within this window (default 72)"}}},"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_4X6BFPZuNEEiIsWj45CjR","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":"Returns an allow/warn/block risk verdict with reasons for a NEAR account before sending it a payment, checking OFAC/SDN, denylists, account age, contract code changes, and vault payment history.","exampleAgentPrompt":"Before I pay alice.near on NEAR mainnet, run a counterparty risk check on it — screen for OFAC sanctions, check if its contract code changed in the last 72 hours, and warn me if the account is less than 7 days old.","exampleUseCases":[{"title":"Pre-payment sanctions screening","prompt":"I'm about to send funds to payments.vendor.near on NEAR mainnet — can you run a risk check on it first and let me know if it's on any sanctions list or denylist before I proceed?"},{"title":"Smart contract code-change alert","prompt":"Check the risk profile of dex-router.near on mainnet and warn me if its contract code has changed in the last 48 hours — I don't want to pay a contract that was just updated without my knowledge."},{"title":"Vault-aware payment history check","prompt":"Using my Allowance vault myvault.near, screen the counterparty bob.near on NEAR mainnet — I want to see if it's in the vault denylist and whether we've had any payment issues with it before."}],"resultDescription":"A JSON object containing a risk verdict of 'allow', 'warn', or 'block', accompanied by an array of human-readable reasons explaining each risk signal triggered — including OFAC/SDN match status, account existence and age, contract code change detection within the specified window, vault denylist membership, and historical payment data from the Allowance vault if provided.","failureModes":["Invalid NEAR account ID format returns a 400 validation error","Account does not exist on the specified network returns a block verdict with 'account not found' reason","OFAC SDN list unavailable may degrade sanctions checks","Vault ID provided but vault not found may return a partial result or error","Network mismatch (testnet account checked on mainnet) may return 'account not found'","Upstream NEAR RPC unavailability may cause a 503 or timeout"],"whenToPreferThis":"Use this endpoint when your agent needs to make a pre-payment risk decision specifically for a NEAR Protocol account, including OFAC sanctions screening, smart contract code-change detection, and optional Allowance vault denylist/history checks. Prefer this over the sibling EVM risk endpoint when the recipient is a NEAR account (*.near or 64-hex implicit). It is especially valuable in automated payment pipelines where blocking a risky counterparty before funds are sent is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T09:14:07.444Z","isFirstParty":false,"canonicalSlug":"agent-risk-desk-near-account-counterparty-risk-d2aa8a7b"}