Skip to content

Instantly share code, notes, and snippets.

@satran004
Created November 6, 2018 16:28
Show Gist options
  • Save satran004/4829d8476c2724ae2ad7256f02c91804 to your computer and use it in GitHub Desktop.
Save satran004/4829d8476c2724ae2ad7256f02c91804 to your computer and use it in GitHub Desktop.
AION GraphQL - Get Blocks
BLOCKS_QUERY: string = `
query blocks($first: Long) {
blockApi {
blocks(first: $first) {
number
hash
parentHash
nrgLimit
nrgConsumed
timestamp
txDetails {
from
to
value
txHash
}
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment