dag_getEventPayload
Returns event (including transactions) by hash or short ID
Parameters
String
, - 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
: QUANTITY - the event version.
epoch
: QUANTITY - the event epoch number.
seq
: QUANTITY - the event sequence number.
hash
: DATA, 32 Bytes - full event ID.
frame
: QUANTITY - event's frame number.
creator
: DATA, 20 Bytes - the address of the event creator (validator).
prevEpochHash
: DATA, 32 Bytes - the hash of the state of previous epoch
parents
: Array, - array of event IDs
gasPowerLeft
: QUANTITY - event's not spent gas power.
gasPowerUsed
: QUANTITY - event's spent gas power.
lamport
: QUANTITY - event's Lamport index.
creationTime
: QUANTITY - the UnixNano timestamp of creator's local creation time.
medianTime
: QUANTITY - the UnixNano timestamp of the secure median time.
extraData
: DATA - the "extra data" field of this event.
transactionsRoot
: DATA, 32 Bytes - the root of the transaction trie of the event.
transactions
: Array - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
Example
Request
Result
Last updated