Skip to main content

EVM Chain Config

Queries information for the specified EVM chain.


query Evm_chain_config($chainUid: String, $chainId: String) {
chains {
evm_chain_config(chain_uid: $chainUid, chain_id: $chainId) {
chain_id
chain_uid
explorer_url
name
native_currency {
decimals
name
symbol
}
rpc_urls {
default {
http
}
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Evm_chain_config($chainUid: String, $chainId: String) {\n chains {\n evm_chain_config(chain_uid: $chainUid, chain_id: $chainId) {\n chain_id\n chain_uid\n explorer_url\n name\n native_currency {\n decimals\n name\n symbol\n }\n rpc_urls {\n default {\n http\n }\n }\n }\n }\n}","variables":{"chainUid":"monad","chainId":null}}'

Open in Playground

Arguments

NameTypeDescription
chainIdStringOptional ID of the chain. If not provided, chainUid must be specified.
chainUidStringOptional UID of the chain. If not provided, chainId must be specified.

Returned Fields

FieldTypeDescription
chain_idStringThe identifier of the EVM chain.
chain_uidStringThe unique UID (usually same as the name) for the chain used for integration purposes.
explorer_urlStringThe URL for the blockchain explorer associated with this chain.
nameStringThe common name of the chain.
native_currencyNativeCurrencyDetails about the chain's native currency.
rpc_urlsRpcURLsThe RPC URL configuration for connecting to the chain.

Nested Fields

NativeCurrency

FieldTypeDescription
decimalsIntThe number of decimal places for the native currency.
nameStringThe name of the native currency.
symbolStringThe symbol of the native currency.

RpcUrl

FieldTypeDescription
http[String]The list of default HTTP RPC endpoints for the chain.