C
$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-state2
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 to
0x43b85ae58f0a2505c710bc715d6f3eb16b1f63deAsset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase
Schemesexact
Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from Connskill & similar services
C
Connskill · Keyword Ideas
agent.connskill.com
Keyword suggestions for a seed keyword, with search volume and CPC
POSTBaseOther
$0.03 / call36 calls / 30d
C
Connskill · Ranked Keywords
agent.connskill.com
Which keywords a domain ranks for, with position, URL and search volume
POSTBaseOther
$0.05 / call30 calls / 30d
C
Connskill · Keyword Metrics
agent.connskill.com
Search volume, CPC and competition for up to 1000 keywords (Google Ads data)
POSTBaseOther
$0.15 / call9 calls / 30d