Skip to content

Instantly share code, notes, and snippets.

@trevorbernard
Created January 16, 2024 13:57
Show Gist options
  • Save trevorbernard/1288eed44e9ecc175b6461e4828b26f4 to your computer and use it in GitHub Desktop.
Save trevorbernard/1288eed44e9ecc175b6461e4828b26f4 to your computer and use it in GitHub Desktop.
query BlocksQuery($query: BlockQueryInput!, $limit: Int = 10, $sort_by: BlockSortByInput!) {
blocks(query: $query, limit: $limit, sortBy: $sort_by) {
blockHeight
dateTime
stateHash
transactions {
coinbase
coinbaseReceiverAccount {
publicKey
}
userCommands {
id
from
to
hash
fee
amount
}
}
creatorAccount {
publicKey
}
snarkJobs {
blockHeight
}
protocolState {
previousStateHash
blockchainState {
snarkedLedgerHash
stagedLedgerHash
}
consensusState {
epoch
slotSinceGenesis
slot
totalCurrency
}
}
winnerAccount {
publicKey
}
snarkFees
txFees
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment