Returns event (including transactions) by hash or short ID.
Supported on Fantom (mainnet) only.
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 epochparents
- array of event IDsgaspowerleft
- 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.
API Endpoint
The format of a Fantom API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/fantom/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/fantom/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/fantom/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"dag_getEventPayload","params":["1:3:a2395846", true],"id":1,"jsonrpc":"2.0"}'
Result