State
Queries the state information of a factory contract on a specified blockchain. It includes details about the factory's ID, chain ID, router contract, hub channel, and admin.
query Factory($chainUid: String!) {
factory(chain_uid: $chainUid) {
state {
chain_uid
router_contract
hub_channel
admin
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Factory($chainUid: String!) {\n factory(chain_uid: $chainUid) {\n state {\n chain_uid\n router_contract\n hub_channel\n admin\n }\n }\n}","variables":{"chainUid":"osmosis"}}'
Arguments
- chainUid (String!): The unique identifier of the chain.
Return Fields
Field | Type | Description |
---|---|---|
chain_uid | String | The unique identifier (UID) of the chain. |
router_contract | String | The address of the router contract. |
hub_channel | String | The hub channel used by the factory. |
admin | String | The admin address of the factory. |