{"name":"aptos_view","title":"Call an Aptos view function","description":"Calls a Move #[view] function read-only, after checking every type argument and argument against the module's ABI: u64/u128/u256 must be decimal strings, vector<u8> a 0x hex string, Option<T> written {\"vec\":[]} or {\"vec\":[value]}, addresses in AIP-40 form. A wrong argument is a specific error from us, never an opaque node error. Optionally reads at a stated ledger version.","inputSchema":{"type":"object","properties":{"function":{"type":"string"},"typeArguments":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{}},"ledgerVersion":{"description":"read the chain exactly as of this ledger version (default: the current one, pinned for consistency)","anyOf":[{"type":"string"},{"type":"integer","minimum":0,"maximum":9007199254740991}]},"chain":{"description":"Aptos CAIP-2 id: aptos:1 (mainnet, default) or aptos:2 (testnet)","type":"string"}},"required":["function"],"additionalProperties":false},"example":{"function":"0x1::coin::name","typeArguments":["0x1::aptos_coin::AptosCoin"],"arguments":[]},"call":{"method":"POST","url":"https://logicnodes.io/v1/tools/aptos_view","body":"JSON object matching inputSchema"},"price":"$0.002","freeAllowance":"25 calls per day per caller (signed wallet, else IP + user agent), then x402 ($0.002 in USDC); see https://logicnodes.io/v1/payments/methods"}