Endpoints & JSON-RPC
Khromosome exposes a standard Ethereum JSON-RPC API. Point any Ethereum library or wallet at the endpoints below.
Network endpoints
| Service | URL |
|---|---|
| JSON-RPC (HTTPS) | https://rpc.khromosome.xyz |
| JSON-RPC (WebSocket) | wss://ws.khromosome.xyz |
| Explorer | https://explorer.khromosome.network |
| Faucet | https://faucet.khromosome.network |
| Contract verification (Sourcify) | https://sourcify.khromosome.network |
| Staking | https://staking.khromosome.network |
| App | https://app.khromosome.network |
Network parameters
| Field | Value |
|---|---|
| Chain ID | 777001 (0xBDB29) |
| Currency | KHROME (18 decimals) |
Common JSON-RPC calls
Chain ID:
curl -s https://rpc.khromosome.xyz \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
# => {"jsonrpc":"2.0","id":1,"result":"0xbdb29"}
Latest block number:
curl -s https://rpc.khromosome.xyz \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
Account balance (wei, hex):
curl -s https://rpc.khromosome.xyz \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0xYOUR_ADDRESS","latest"],"id":1}'
Gas price:
curl -s https://rpc.khromosome.xyz \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}'
Because the EVM is unmodified, the full standard eth_*, net_*, and web3_*
method set is available, plus the explorer's ots_* (Otterscan) namespace for
rich transaction tracing.