Skip to content

Instantly share code, notes, and snippets.

@luizstacio
Created December 9, 2022 19:59
Show Gist options
  • Save luizstacio/44bda679b8805bbb835370f839855227 to your computer and use it in GitHub Desktop.
Save luizstacio/44bda679b8805bbb835370f839855227 to your computer and use it in GitHub Desktop.
Full query
# Go to: https://node-beta-2.fuel.network/playground
query {
transaction(
id: "0x755fecd0059b835efbcd0e647590c38f87b95ca062ec978f28a085042c05e3a9"
) {
id
inputAssetIds
inputContracts {
id
bytecode
salt
}
gasPrice
gasLimit
maturity
txPointer
isScript
isCreate
isMint
inputs {
type: __typename
... on InputCoin {
amount
assetId
maturity
owner
predicate
predicateData
txPointer
utxoId
witnessIndex
}
... on InputContract {
balanceRoot
contract {
bytecode
id
salt
}
stateRoot
txPointer
utxoId
}
... on InputMessage {
amount
data
messageId
nonce
predicate
predicateData
recipient
sender
witnessIndex
}
}
outputs {
type: __typename
... on ChangeOutput {
amount
assetId
to
}
... on CoinOutput {
amount
assetId
to
}
... on ContractCreated {
contract {
bytecode
id
salt
}
stateRoot
}
... on ContractOutput {
balanceRoot
inputIndex
stateRoot
}
... on MessageOutput {
amount
recipient
}
... on VariableOutput {
amount
assetId
to
}
}
witnesses
receiptsRoot
status {
type: __typename
... on SubmittedStatus {
time
}
... on SuccessStatus {
block {
id
}
time
programState {
returnType
data
}
}
... on FailureStatus {
block {
id
}
time
reason
}
}
receipts {
contract {
id
bytecode
salt
}
pc
is
to {
id
bytecode
salt
}
toAddress
amount
assetId
gas
param1
param2
val
ptr
digest
reason
ra
rb
rc
rd
len
receiptType
rawPayload
result
gasUsed
data
messageId
sender
recipient
nonce
contractId
}
script
scriptData
bytecodeWitnessIndex
bytecodeLength
salt
storageSlots
rawPayload
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment