Product2 min read

One API, four chains: Ethereum, BNB, Bitcoin & Tron

Hit Ethereum, BNB, Bitcoin and Tron through one consistent request shape — just change the network value.

cryptoapi team
Product
On this page

Integrating crypto usually means four SDKs, four mental models, and four ways of counting decimals. EVM chains, Bitcoin's UTXO model, and Tron all speak different languages. CryptoAPI flattens that: one multi-chain crypto API where Ethereum, BNB, Bitcoin and Tron share the same request/response shape. You learn the call once, then change a single network value.

Same shape, any chain

Wallet and transaction calls take a network field that accepts ethereum, bnb, bitcoin or tron. Look up a balance on Ethereum:

bash
curl -X POST https://api.cryptoapi.so/api/wallet/balance \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"network":"ethereum","address":"0xYourAddress"}'

Now point the exact same request at Bitcoin. Only one field changes:

bash
curl -X POST https://api.cryptoapi.so/api/wallet/balance \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"network":"bitcoin","address":"bc1YourAddress"}'

No UTXO bookkeeping, no per-chain client. Use the same REST endpoints for live details and broadcasts across chains. The signed transaction uses the selected chain’s own format. Every /api/* call needs auth (key header or Authorization: Bearer <JWT>).

Normalised decimals and unified token balances

Chains disagree on units: Ethereum tracks 18 decimals, Tron's USDT uses 6, Bitcoin uses 8. Instead of forcing you to track that, POST /api/wallet/balance returns the native coin plus up to 20 tokens, each already normalised with its balance, decimals, symbol, and a fiat usdValue. A single token entry looks like this:

json
{
  "balance": "1.532",
  "decimals": 18,
  "symbol": "ETH",
  "usdValue": 5421.3
}

The balance response includes a USD value when a mainnet rate is available. For standalone rates, GET /api/info/supported-coins returns each coin's usdRate (refreshed roughly every minute) alongside its name, symbol, decimals and contractAddress.

Which tokens exist on each chain

Token support differs per chain, so check it explicitly. Authenticate with your API key and scope GET /api/info/supported-coins to the network you need.

bash
curl "https://api.cryptoapi.so/api/info/supported-coins?network=tron" \
  --header "key: $CRYPTOAPI_KEY"

Use the returned contractAddress values to populate the optional tokens array on a balance call.

Honest about the edges

Four chains are live today. Solana is registered but not yet usable — we would rather under-promise than ship a broken network value. There is also no public webhook or streaming socket: for "new transaction" alerts you poll GET /api/blockchain/transactions on an interval (the live index covers up to 30 days), while GET /api/blockchain/transaction fetches a single tx by hash subject to provider coverage.

Pick up an API key in the dashboard, then browse the docs to see every wallet and transaction endpoint share the same four-chain shape.

Read it, then ship it

Copy the code above and run it today.

Every snippet in this guide works on the free plan. Grab a key and make your first call in a minute.