Skip to main content

State

Queries state information for the router.

query State {
router {
state {
admin
vlp_code_id
virtual_balance_address
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query State {\n router {\n state {\n admin\n vlp_code_id\n virtual_balance_address\n }\n }\n}"}'

Open in Playground

Return Fields

FieldTypeDescription
adminStringThe admin address of the router.
vlp_code_idIntThe code ID of the VLP.
virtual_balance_addressStringThe address of the VBalance contract.