Skip to main content

getChainName Query

Retrieve the name of the blockchain network.

Updated on
Oct 16, 2024

getChainName Query

Parameters

This method does not accept any parameters

Returns

data
object
The data object which contains the following fields:
chain
object
The object that holds information about the blockchain network
name
string
The name of the blockchain network
Request
1
curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \
2
--header 'Accept: application/json' \
3
--header 'Content-Type: application/json' \
4
--data '{
5
"query": "{ chain{name}} "
6
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free