Transaction Subquery
Query data about a Transaction
Description
Transaction Subqueries provide information about a transaction that was submitted to the blockchain. Etherscan (Goerli) provides a lot of useful information when looking at this data.
Limits
Maximum of 32 Transaction subqueries per Query. Each transaction can have a data field of at most 8192 bytes and an access list of at most length 4096 bytes.
Builder
buildTxSubquery(txHash)
Examples
const txHash = "0x9890aaedc5df95de7d535faf10c8d1a96a262b79e0fcb2ed52939c8ebd049d29";
const txSubquery: TxSubquery = buildTxSubquery(txHash)
.field(TxField.MaxPriorityFeePerGas)
.type(TxType.Eip1559);
const txHash = "0x9890aaedc5df95de7d535faf10c8d1a96a262b79e0fcb2ed52939c8ebd049d29";
const txSubquery: TxSubquery = buildTxSubquery(txHash)
.functionSelector();
const txHash = "0x9890aaedc5df95de7d535faf10c8d1a96a262b79e0fcb2ed52939c8ebd049d29";
const txSubquery: TxSubquery = buildTxSubquery(txHash)
.calldata(3); // 3rd bytes32-sized value in tx calldata
Last updated