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"}}'
Arguments
- chainUid (String!): The unique identifier of the chain.
Return Fields
Field | Type | Description |
---|---|---|
chain_id | ChainID | The chain ID and factory address for the specified chain. |
ChainID
Field | Type | Description |
---|---|---|
chain_id | String | The unique identifier of the chain. |
factory_address | String | The address of the factory contract. |