A

Animica · Chain Identity

by Animica

POSTBaseanimica:1

$0.006

per call · USD Coin on Base

Verify you are on real Animica mainnet, and which chain id to sign with. Animica answers that question with TWO numbers: the native chain is id 1, while the EVM compatibility facade reports 149 (eth_chainId 0x95, net_version "149"). A wallet porting Ethereum tooling signs with the wrong one. Returns both, the disagreement named, plus genesis hash, fork id, policy hash and the built-in consensus checkpoints a light client pins against. All read live. No model.

Endpoint

POST https://animica.dev/x402/chain/identity

2

Calls / 30d

2

Unique payers / 30d

Aug 27

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://animica.dev/x402/chain/identity", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "expect_chain_id": 1,
    "expect_genesis_hash": "0xa0892158cf997c56e91d0aa12e60c36037dae34800a2b54111a8fa17ec88b7de"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://animica.dev/x402/chain/identity" \
  -H "Content-Type: application/json" \
  -d '{"expect_chain_id":1,"expect_genesis_hash":"0xa0892158cf997c56e91d0aa12e60c36037dae34800a2b54111a8fa17ec88b7de"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x5d17c40fd6b119dc6006c4ab3c20a917fcab2acd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, animica:1
Schemesexact

Is this your API?

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

Get featured →

More from Animica & similar services