Skip to content

Instantly share code, notes, and snippets.

@luizstacio
Created April 17, 2023 21:37
Show Gist options
  • Save luizstacio/d612716580019c66cddad7b441d46071 to your computer and use it in GitHub Desktop.
Save luizstacio/d612716580019c66cddad7b441d46071 to your computer and use it in GitHub Desktop.
Fetch Block
query {
block(id:"0xa009840db4ccf73108aba664ac89ff867a35328f8878be608f907ec0117d45ad") {
id
header {
id
daHeight
transactionsCount
outputMessagesCount
transactionsRoot
outputMessagesRoot
transactionsRoot
height
prevRoot
time
applicationHash
}
consensus {
type:__typename
... on Genesis {
chainConfigHash
coinsRoot
contractsRoot
messagesRoot
}
... on PoAConsensus {
signature
}
}
transactions {
id
status {
type: __typename
... on SubmittedStatus {
time
}
... on SuccessStatus {
block {
id
}
time
programState {
returnType
data
}
}
... on FailureStatus {
block {
id
}
time
reason
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment