C

Connskill · Chain Chain State

by Connskill

POSTBase

$0.05

per call · USD Coin on Base

Wallet/contract state on 5 EVM chains in one call: native balance, nonce, EOA-or-contract (EIP-7702-aware), ERC-20 balances with symbol and decimals

Endpoint

POST https://agent.connskill.com/chain/v1/chain-state

2

Calls / 30d

1

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agent.connskill.com/chain/v1/chain-state", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "address": "0x43B85AE58f0A2505c710Bc715d6f3EB16b1f63dE",
    "chain": "base",
    "tokens": [
      "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent.connskill.com/chain/v1/chain-state" \
  -H "Content-Type: application/json" \
  -d '{"address":"0x43B85AE58f0A2505c710Bc715d6f3EB16b1f63dE","chain":"base","tokens":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0x43B85AE58f0A2505c710Bc715d6f3EB16b1f63dE",
  "chain": "base",
  "codeKind": "eoa",
  "isContract": false,
  "native": {
    "formatted": "1.2345",
    "wei": "1234500000000000000"
  },
  "nonce": 42,
  "status": "delivered",
  "tokens": [
    {
      "balance": "31.58",
      "balanceRaw": "31580000",
      "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "decimals": 6,
      "symbol": "USDC"
    }
  ]
}

Payment details

Pay to0x43b85ae58f0a2505c710bc715d6f3eb16b1f63de
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Connskill & similar services