All Tokens
Queries all the tokens availabe in the Euclid layer.
query All_tokens($max: String, $min: String, $skip: Int, $limit: Int) {
router {
all_tokens(max: $max, min: $min, skip: $skip, limit: $limit) {
tokens
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query All_tokens($max: String, $min: String, $skip: Int, $limit: Int) {\n router {\n all_tokens(max: $max, min: $min, skip: $skip, limit: $limit) {\n tokens\n }\n }\n}","variables":{"max":"stars","min":"euclid","skip":null,"limit":7}}'
Arguments
Name | Type | Description |
---|---|---|
max | String | The upper limit token ID to return (exclusive). |
min | String | The lower limit token ID 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 | Type | Description |
---|---|---|
token | String | The Id of the token. |