Query
This type of APIs are used for read-only operations.
Example: Get Transaction, Get Blocks, Get Balance etc.
If you are accessing a Query type API, you can optionally start your request data with "query" keyword.
Both of the following queries are valid.
query {
blockApi {
blocks(first: 20) {
number
hash
parentHash
timestamp
nrgConsumed
nrgLimit
}
}
}
{
blockApi {
blocks(first: 20) {
number
hash
parentHash
timestamp
nrgConsumed
nrgLimit
}
}
}
Last updated