Skip to main content

Escrows

Queries the chain UID that contain an escrow with the specified token. Returns information on the escrow if found.

query Escrows($token: String!, $max: String, $min: String, $skip: Int, $limit: Int) {
router {
escrows(token: $token, max: $max, min: $min, skip: $skip, limit: $limit) {
chain_uid
balance
chain_id
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Escrows($token: String!) {\n router {\n escrows(token: $token) {\n chain_uid\n balance\n chain_id\n }\n }\n}","variables":{"token":"euclid"}}'

Open in Playground

Arguments

NameTypeDescription
tokenString!The identifier of the token to query escrows for.
maxStringThe upper limit chain UID to return (exclusive).
minStringThe lower limit chain UID to start from (inclusive).
skipIntThe number of results to skip in the response.
limitIntThe maximum number of results to return.

Return Fields

Field NameTypeDescription
chain_uidStringThe UID of the chain that has an escrow for the specified token.
balanceStringThe current amount of tokens held in the escrow.
chain_idStringThe Id of the chain that has an escrow for the specified token.