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"}}'
Arguments
| Name | Type | Description | 
|---|---|---|
| token | String! | The identifier of the token to query escrows for. | 
| max | String | The upper limit chain UID to return (exclusive). | 
| min | String | The lower limit chain UID to start from (inclusive). | 
| skip | Int | The number of results to skip in the response. | 
| limit | Int | The maximum number of results to return. | 
Return Fields
| Field Name | Type | Description | 
|---|---|---|
| chain_uid | String | The UID of the chain that has an escrow for the specified token. | 
| balance | String | The current amount of tokens held in the escrow. | 
| chain_id | String | The Id of the chain that has an escrow for the specified token. |