Chains and addresses
Chain ids
Section titled “Chain ids”Every native route takes the chain’s numeric id in the path as {chain_id}.
| Chain | chain_id |
Address format |
|---|---|---|
| Ethereum | 1 |
hex |
| BNB Chain | 56 |
hex |
| Base | 8453 |
hex |
| Solana | 1399811149 |
base58 |
The Mobula-compatible endpoints spell chains differently, for example evm:1 and solana.
EVM addresses
Section titled “EVM addresses”An EVM address is 40 hex characters.
Answers write it in lowercase without the 0x prefix, for example c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.
Requests accept the same form.
Transaction ids are 64 hex characters, lowercase, without 0x.
Some pool ids are 64 hex characters, because some exchanges identify a pool by a 32-byte id rather than by a contract address.
Solana addresses
Section titled “Solana addresses”A Solana address is base58, for example So11111111111111111111111111111111111111112.
Base58 is case-sensitive: send it exactly as the chain writes it.
Amounts and times
Section titled “Amounts and times”Fields ending in _usd are US dollars.
Fields ending in _pct are percentages, so 2.5 means 2.5 %.
Fields ending in _us are Unix time in microseconds.
Fields ending in _raw, and balance in holder lists, are integers in the token’s smallest unit, written as strings so no precision is lost.
Other token amounts are decimal numbers already divided by the token’s decimals.