Links
Comment on page

dag_getHeads

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"]
}