Skip to main content

dag_getEventPayload RPC Method

Returns event (including transactions) by hash or short ID.

Updated on
Nov 2, 2023

dag_getEventPayload RPC Method

Parameters

string
The full event ID (hex-encoded 32 bytes) or short event ID.
boolean
If true, it returns the full transaction objects, if false only the hashes of the transactions..

Returns

object
An event object, or null when no event was found
version
the event version.
epoch
the event epoch number.
seq
the event sequence number.
hash
DATA, 32 full event ID.
frame
event's frame number.
creator
the address of the event creator (validator).
prevEpochHash
the hash of the state of previous epoch
parents
array of event IDs
gasPowerLeft
event's not spent gas power.
gasPowerUsed
event's spent gas power.
lamport
event's Lamport index.
creationTime
the UnixNano timestamp of creator's local creation time.
medianTime
the UnixNano timestamp of the secure median time.
extraData
the "extra data" field of this event.
transactionsRoot
the root of the transaction trie of the event.
transactions
Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
Request
1
curl https://docs-demo.fantom.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"dag_getEventPayload","params":["0x00033bbf00000719167a3b2c445bd3e53e9c35d16cf52ac24852317b9605d07e", true],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free