# LogicNodes Aptos View Function Caller

> LogicNodes Aptos View Function Caller is a paid API for AI agents from logicnodes.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Calls a read-only (view) function on the Aptos blockchain and returns the exact result as of a specified ledger version

## Facts

- Endpoint: POST https://logicnodes.io/paid/v1/tools/aptos_view?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/logicnodes-aptos-view-function-caller-3e9d6d07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rR40-Vgp_p024QTs5c8eD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability logicnodes-aptos-view-function-caller-3e9d6d07 -d '<json body>'
```

Example prompt: Call the Aptos mainnet view function '0x1::coin::balance' with type argument '0x1::aptos_coin::AptosCoin' and the address '0xabc123...' as argument, and tell me the exact token balance returned.

## When to prefer this

Choose this endpoint when you need to call a specific read-only Move view function on Aptos mainnet or testnet and get a deterministic, exact result — especially when historical accuracy at a specific ledger version is required. Prefer it over general-purpose RPC providers when you need reliable, agent-optimized responses with per-call micropayment billing and no infrastructure setup.

## Known failure modes

- Invalid or non-existent Move function identifier returns an error
- Mismatched type arguments or argument count causes execution failure
- Specifying a ledger version beyond the node's history returns a not-found error
- Using an unsupported chain ID (not aptos:1 or aptos:2) returns a validation error
- Network or node unavailability returns a timeout or 5xx error
- Payment failure via x402 protocol blocks request execution

## How this service works

Exact answers for AI agents: 40+ tools for EVM chains and Aptos, gas on 14 chains, never a guess. Free tier; pay per call in USDC (x402) on 13 networks.

## Output

A JSON object containing an 'ok' boolean and the 'tool' identifier along with the return value(s) of the invoked Aptos Move view function. The response reflects the exact on-chain state at the requested ledger version (or current if unspecified).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Aptos CAIP-2 id: aptos:1 (mainnet, default) or aptos:2 (testnet)"
  },
  "function": {
   "type": "string"
  },
  "arguments": {
   "type": "array",
   "items": {}
  },
  "ledgerVersion": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "integer",
     "maximum": 9007199254740991,
     "minimum": 0
    }
   ],
   "description": "read the chain exactly as of this ledger version (default: the current one, pinned for consistency)"
  },
  "typeArguments": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "aptos_view"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/logicnodes-aptos-view-function-caller-3e9d6d07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from logicnodes.io](https://www.zero.xyz/host/logicnodes.io/llms.txt)
