Arc contract read
arc_contract_readContract read on Arc: one view call on any contract, decoded, with block and time (owner, paused, allowance, balance...). Only view/pure functions; a revert or non-contract is refused before payment. $0.001 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"fn": "<fn>"
},
"name": "arc_contract_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fn | Yes | function signature, e.g. function balanceOf(address) view returns (uint256) | |
| args | No | optional: JSON array of arguments | |
| block | No | optional: a past block number | |
| address | Yes | contract address (0x...) | |
| payment | No | a signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call. |