All Chains
Queries all chain info within the router contract.
query Router {
router {
all_chains {
chain {
factory_chain_id
factory
from_hub_channel
from_factory_channel
}
chain_uid
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Router {\n router {\n all_chains {\n chain {\n factory_chain_id\n factory\n from_hub_channel\n from_factory_channel\n }\n chain_uid\n }\n }\n}"}'
Return Fields
Field | Type | Description |
---|---|---|
chain | Chain | Detailed information about the chain. |
chain_uid | String | The unique identifier (UID) of the chain. |
Chain
Field | Type | Description |
---|---|---|
factory_chain_id | String | The factory chain ID. |
factory | String | The contract address of the factory. |
from_hub_channel | String | The channel from hub to factory. |
from_factory_channel | String | The channel from factory to hub. |