{"uid":"cap_UeaDMZ36XD21TkYyIf3j_","slug":"saylor-innovations-data-desk-near-account-lookup-4bb0d1dc","name":"Saylor Innovations Data Desk – NEAR Account Lookup","description":"NEAR account lookup: balance, locked stake, storage cost and available NEAR, contract detection and full-access key count, from a NEAR RPC node.","url":"https://saylorinnovations.com/api/explorer/near/account?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["account"],"properties":{"account":{"type":"string","description":"the NEAR account id (alice.near) or 64-hex implicit account"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","account","exists","kind","balance_near","note","source"],"properties":{"kind":{"type":"string","description":"Kind of record"},"note":{"type":"string","description":"Caveat or context for reading the result"},"chain":{"type":"string","description":"Blockchain the data is for"},"exists":{"type":"boolean"},"source":{"type":"string","description":"Data source the values come from"},"account":{"type":"string"},"code_hash":{"type":["string","null"],"description":"Code hash"},"checked_at":{"type":"string","description":"Time the check was run (UTC)"},"locked_near":{"type":"number","description":"Locked near"},"balance_near":{"type":"number","description":"Balance near"},"available_near":{"type":"number","description":"Available near"},"access_key_count":{"type":["number","null"],"description":"Number of access key"},"full_access_keys":{"type":["number","null"],"description":"Full access keys"},"storage_cost_near":{"type":"number","description":"Storage cost near"},"storage_usage_bytes":{"type":"number","description":"Storage usage, in bytes"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Jj-uh80qEm9oqLx5NxfZ1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a NEAR blockchain account by ID, returning balance, locked stake, storage cost, available NEAR, contract detection, and full-access key count via a NEAR RPC node.","exampleAgentPrompt":"Can you look up the NEAR account info for alice.near and tell me the total balance, how much is locked in staking, how much is actually available to spend, and whether it has a smart contract deployed?","exampleUseCases":[{"title":"Verify wallet balance before transfer","prompt":"Before I send NEAR to pagoda.near, can you check how much total NEAR is in that account and whether it actually exists on-chain?"},{"title":"Audit contract deployment on account","prompt":"I want to know if the account myprotocol.near has a smart contract deployed — can you check its code hash and tell me how many full-access keys it has?"},{"title":"Monitor staking lock for validator account","prompt":"Can you pull up the staking details for 4a1b2c3d...ef.near — specifically how much NEAR is locked versus available, and what the storage cost is?"}],"resultDescription":"A JSON object containing: the chain identifier ('near'), the queried account ID, a boolean indicating whether the account exists, the account kind, balance in NEAR, locked NEAR (staked), available NEAR, storage cost in NEAR, storage usage in bytes, the contract code hash (null if no contract), total access key count, full-access key count, a data source label, and a contextual note about interpreting the result.","failureModes":["Account does not exist on NEAR — returns exists:false with null fields for contract/keys","Invalid account ID format — malformed account string may result in an error or empty response","NEAR RPC node unavailability — upstream node downtime causes request failure","Rate limiting or payment failure — x402 payment required; invalid or missing payment returns 402","Implicit account with no on-chain state — returns exists:false even for valid 64-hex addresses that have never received NEAR"],"whenToPreferThis":"Use this endpoint when you need on-chain NEAR account data — balance, staking state, storage cost, or contract presence — in a single lightweight call without running your own NEAR RPC node. Prefer this over raw RPC calls for agents that need structured JSON output without parsing raw blockchain responses. Ideal for wallets, portfolio trackers, audit tools, and DeFi agents operating on the NEAR Protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T00:43:26.623Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-data-desk-near-account-lookup-4bb0d1dc"}