Skip to main content

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"}}'

Open in Playground

Arguments

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

Return Fields

FieldTypeDescription
chain_uidStringThe unique identifier (UID) of the chain.
router_contractStringThe address of the router contract.
hub_channelStringThe hub channel used by the factory.
adminStringThe admin address of the factory.