80trust / 100

Chain Nonce

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 3 h ago

chainpeek (Tanod) account nonce: the transaction count of an Ethereum or Base address (latest or pending). Use when an agent must read an address's transaction count to set the nonce of its next transaction.

POST https://tanod.dev/v1/chain/nonce

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
277 ms typical, 910 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/chain/nonce' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","block":"pending","chain":"ethereum"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fchain%2Fnonce
const res = await pay("https://tanod.dev/v1/chain/nonce", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"address\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"block\":\"pending\",\"chain\":\"ethereum\"}",
});
console.log(await res.json());

Example input

{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "block": "pending",
  "chain": "ethereum"
}

Example output

{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "block": "latest",
  "chain": "ethereum",
  "nonce": 5969,
  "nonce_hex": "0x1751",
  "note": "RPC reads are cached up to 30 s"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402271 ms$0.001
7 h agoPassed402271 ms$0.001
11 h agoPassed402275 ms$0.001
14 h agoPassed402415 ms$0.001
19 h agoPassed402859 ms$0.001
22 h agoPassed402286 ms$0.001
26 h agoPassed402735 ms$0.001
29 h agoPassed4021.8 s$0.001
33 h agoPassed402278 ms$0.001
36 h agoPassed402269 ms$0.001
40 h agoPassed402284 ms$0.001
43 h agoPassed402263 ms$0.001
2 days agoPassed402270 ms$0.001
2 days agoPassed402277 ms$0.001
2 days agoPassed402263 ms$0.001