BabyChain API Reference
BabyChain exposes several API endpoints for interacting with the chain, managing payments, and integrating merchant services.
Base URLs
| Service | URL |
|---|---|
| EVM JSON-RPC | \https://testnet.babyfx.org/rpc\ |
| Cosmos SDK REST | \https://testnet.babyfx.org/cosmos/\ |
| WebSocket | \wss://testnet.babyfx.org/ws\ |
| Gateway API | \https://testnet.babyfx.org/gateway/\ |
| BabyFX Pay API | \https://api.babyfx.org\ |
EVM JSON-RPC
Standard Ethereum-compatible JSON-RPC endpoint for smart contract interactions, token transfers, and transaction signing.
Endpoint: \https://testnet.babyfx.org/rpc Chain ID: 8432 Supported methods:
- \eth_blockNumber- \eth_getBalance- \eth_call- \eth_sendRawTransaction- \eth_getTransactionReceipt- \eth_getLogs- \eth_estimateGas- \eth_gasPrice- et_version- \web3_clientVersion'
Cosmos SDK REST API
Standard Cosmos SDK REST endpoints for querying chain state, bank balances, staking, and governance.
Endpoint: \https://testnet.babyfx.org/cosmos/ Available modules: \cosmos/bank/v1beta1/, \cosmos/staking/v1beta1/, \cosmos/gov/v1beta1/, \ibc/applications/transfer/v1/, and more.
Gateway API
The Gateway API provides high-level abstractions for deposits, withdrawals, and account management.
Endpoint: \https://testnet.babyfx.org/gateway/
BabyFX Pay API
The Pay API enables merchants to accept payments in 2BABY tokens. See the Pay API reference for full details.
Base URL: \https://api.babyfx.org Authentication: Bearer token in Authorization header.
WebSocket
Real-time event streaming for transaction updates and blockchain events.
Endpoint: \wss://testnet.babyfx.org/ws
Rate Limits
| Endpoint | Limit |
|---|---|
| RPC | 20 requests/second |
| REST / Cosmos | 30 requests/second |
| Gateway | 10 requests/second |
Testnet Information
| Parameter | Value |
|---|---|
| Chain ID | 8432\ |
| RPC URL | \https://testnet.babyfx.org/rpc\ |
| WebSocket | \wss://testnet.babyfx.org/ws\ |
| Cosmos REST | \https://testnet.babyfx.org/cosmos/\ |
| Gateway | \https://testnet.babyfx.org/gateway/\ |
| Explorer | \https://testnet.babyfx.org/er/\ |
| Faucet | \https://testnet.babyfx.org/faucet\ |
