Chains
Get supported chains
Changed onRetrieves all supported blockchain networks, optionally filtered by network type (mainnet/testnet)
get/chains
Request
- Base URLhttps://api.chainrails.io/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
network'mainnet' | 'testnet'
Network type filter (mainnet or testnet)
Response
Supported chains retrieved successfully
string[] required
Example response
[ "ETHEREUM_MAINNET", "ARBITRUM_MAINNET", "BASE_MAINNET", "OPTIMISM_MAINNET", "POLYGON_MAINNET", "AVALANCHE_MAINNET", "STARKNET_MAINNET" ]
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
- info
endpoint added
- info