Get Chains
This API returns all possible chains available.
curl --request GET \
--url https://api.relay.link/chains
{
"chains": [
{
"id": 123,
"name": "<string>",
"displayName": "<string>",
"httpRpcUrl": "<string>",
"wsRpcUrl": "<string>",
"explorerUrl": "<string>",
"explorerName": "<string>",
"depositEnabled": true,
"tokenSupport": "All",
"disabled": true,
"partialDisableLimit": 123,
"blockProductionLagging": true,
"currency": {
"id": "<string>",
"symbol": "<string>",
"name": "<string>",
"address": "<string>",
"decimals": 123,
"supportsBridging": true
},
"withdrawalFee": 123,
"depositFee": 123,
"surgeEnabled": true,
"erc20Currencies": [
{
"id": "<string>",
"symbol": "<string>",
"name": "<string>",
"address": "<string>",
"decimals": 123,
"supportsBridging": true,
"supportsPermit": true,
"withdrawalFee": 123,
"depositFee": 123,
"surgeEnabled": true
}
],
"iconUrl": "<string>",
"logoUrl": "<string>",
"brandColor": "<string>",
"contracts": {
"multicall3": "<string>",
"multicaller": "<string>",
"onlyOwnerMulticaller": "<string>",
"relayReceiver": "<string>",
"erc20Router": "<string>",
"approvalProxy": "<string>"
},
"vmType": "bvm",
"explorerQueryParams": {},
"baseChainId": 123,
"statusMessage": "<string>"
}
]
}
Query Parameters
Response
An array of supported chains
If the network supports depositing to this chain, e.g. allows this chain to be set as the destination chain
All
, Limited
If relaying to and from this chain is disabled
The value limit at which the chain is partially disabled, if 0, the chain is not partially disabled. i.e, 1000000000000000000 to designate 1 ETH max withdrawal/deposit
If the chain is experiencing issues where blocks are lagging behind or not being produced
The fee in bps for withdrawing from this chain
The fee in bps for depositing to this chain
If the chain has surge pricing enabled
An array of erc20 currencies that the chain supports
If the currency supports bridging
If the erc20 currency supports permit via signature (EIP-2612)
The fee in bps for withdrawing from this chain
The fee in bps for depositing to this chain
If the chain has surge pricing enabled
The URL to the chain icon
The URL to the chain logo
Brand color code
The type of VM the chain runs on
bvm
, evm
, svm
The chain id which the chain rolls up to. This is always set as Ethereum for L1 chains
If applicable, a status message for the chain
curl --request GET \
--url https://api.relay.link/chains
{
"chains": [
{
"id": 123,
"name": "<string>",
"displayName": "<string>",
"httpRpcUrl": "<string>",
"wsRpcUrl": "<string>",
"explorerUrl": "<string>",
"explorerName": "<string>",
"depositEnabled": true,
"tokenSupport": "All",
"disabled": true,
"partialDisableLimit": 123,
"blockProductionLagging": true,
"currency": {
"id": "<string>",
"symbol": "<string>",
"name": "<string>",
"address": "<string>",
"decimals": 123,
"supportsBridging": true
},
"withdrawalFee": 123,
"depositFee": 123,
"surgeEnabled": true,
"erc20Currencies": [
{
"id": "<string>",
"symbol": "<string>",
"name": "<string>",
"address": "<string>",
"decimals": 123,
"supportsBridging": true,
"supportsPermit": true,
"withdrawalFee": 123,
"depositFee": 123,
"surgeEnabled": true
}
],
"iconUrl": "<string>",
"logoUrl": "<string>",
"brandColor": "<string>",
"contracts": {
"multicall3": "<string>",
"multicaller": "<string>",
"onlyOwnerMulticaller": "<string>",
"relayReceiver": "<string>",
"erc20Router": "<string>",
"approvalProxy": "<string>"
},
"vmType": "bvm",
"explorerQueryParams": {},
"baseChainId": 123,
"statusMessage": "<string>"
}
]
}