dag_getHeads
Returns IDs of all the epoch events with no descendants in a given epochβ
Returns IDs of all the epoch events with no descendants in a given epochβ
Parametersβ
String, - epoch number (HEX-encoded) for a specific epoch (pass βlatestβ to use latest epoch; pass βpendingβ to use latest sealed epoch).
Returnsβ
Array - Array of event IDs
Exampleβ
Request
curl -H "Content-Type: application/json" \
-d '{"id": 1, "jsonrpc":"2.0", "method": "dag_getHeads", "params": ["pending"]}' \
https://fantom-mainnet.blastapi.io/<project-id>
Result
{
"jsonrpc": "2.0",
"id": 1,
"result": ["0x0001714600000024daf2bbfe6ad83ffd21a5623e672f95cc2347e2bbd7441d75", "0x00017146000000236749c8975119f5cdbcda7b7efb8325d21a98a2629ba96315"]
}