dag_getEvent

Returns the event (without transactions) by hash or short ID.

The dag_getEvent command returns an event based on its hash or short ID. The result does not contain transaction details. To obtain transaction details, use eth_getTransactionByHash.

Parameters

String - full event ID (hex-encoded 32 bytes) or short event ID.

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.

seq: QUANTITY - the event sequence number.

frame: QUANTITY - event's frame number.

creator: QUANTITY, - the ID of the event creator (validator).

prevEpochHash: DATA, 32 Bytes - the hash of the state of previous epoch

parents: Array, - array of event IDs

gasPowerLeft.shortTerm: QUANTITY - event's not spent gas power in short-term gas power window.

gasPowerLeft.longTerm: QUANTITY - event's not spent gas power in long-term gas power window.

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 hash of transactions of the event.

Example Request and Result for dag_getEvent

Request

Result

Last updated