Skip to main content

Network

GET /v1/p/network

Get network details for a given blockchain ID.

curl -X GET "$ETHGAS_API_URL/v1/p/network?chainId=1"

Request

ParameterRequiredTypeDescription
chainIdYESintegerChain ID

Response Body

NameTypeDescription
networkobjectBlockchain details
└ networkIdintegerUnique ID for the blockchain network assigned by ETHGas
└ chainIdintegerChain ID
└ namestringName of the blockchain network (e.g. Ethereum)
└ enablebooleanWhether this chain is enabled within ETHGas
└ visiblebooleanWhether this chain is visible on ETHGas

Example Response

{
"success": true,
"data": {
"network": {
"networkId": 1,
"chainId": 11155111,
"name": "Ethereum",
"enable": true,
"visible": true
}
}
}