Skip to main content

Chain Id

Queries the chain ID and factory address for a specified chain using its unique identifier (UID).

query Chain_id($chainUid: String!) {
chains {
chain_id(chain_uid: $chainUid) {
chain_id
factory_address
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Chain_id($chainUid: String!) {\n chains {\n chain_id(chain_uid: $chainUid) {\n chain_id\n factory_address\n }\n }\n}","variables":{"chainUid":"nibiru"}}'

Open in Playground

Arguments

  • chainUid (String!): The unique identifier of the chain.

Return Fields

FieldTypeDescription
chain_idChainIDThe chain ID and factory address for the specified chain.

ChainID

FieldTypeDescription
chain_idStringThe unique identifier of the chain.
factory_addressStringThe address of the factory contract.