Traces v2
Table function
The eth_traces_v2_rpc table contains EVM transaction traces, including both main and internal transactions. Basically the same as eth_traces_rpc, but it uses another RPC interface: debug_traceBlockByNumber, which is a debugging API method provided by the Geth (Go-Ethereum) client.
Procedure
Establish a Connection: Connect to your Ethereum node using the URL provided in the inputs.
Set Block Range: Determine the block range by specifying
fromBlock
andtoBlock
. These arguments represent the starting and ending block numbers for scanning.Execute RPC Call: Invoke the eth_traces_v2_rpc function, passing the required arguments (
fromBlock
,toBlock
, andurl
).Retrieve and Analyze Data: Collect the output data, which includes detailed transaction traces. Use this data to gain insights into transaction processes and perform any necessary debugging or analysis.
Inputs
fromBlock
BigInt
Block number to start scanning from.
toBlock
BigInt
Block number to stop scanning at.
url
VARCHAR
URL of the Ethereum node.
Outputs
blockNumber
BIGINT
The block number.
type
VARCHAR
trace type.(CALL, STATICCALL, DELEGATECALL...)
from
VARCHAR
address of the sender
to
VARCHAR
address of the receiver
value
VARCHAR
Amount of ETH sent from sender to recipient (if any), measured in wei (1 ETH = 10^18 wei)
input
VARCHAR
call data provided to this trace, often containing function signatures and parameters
gas
BIGINT
gas provided by the caller
error
VARCHAR
Error message or code if the trace execution failed
output
VARCHAR
output data from the call.
gasUsed
BIGINT
Actual amount of gas consumed by this trace's execution
subtraces
BIGINT
Number of subtraces created by this trace
traceAddress
LIST(BIGINT)
Array indicating the exact position of this trace within the trace tree of the transaction
revertReason
VARCHAR
Solidity revert reason, if any
Example
D set variable eth_url = 'https://capable-winter-film.quiknode.pro/{API_KEY}';
D select * from eth_traces_v2_rpc(21104078, 21104078, getvariable('eth_url'));
βββββββββββββββ¬βββββββββββββββ¬βββββββββββββββββββββββ¬βββββββββββββββββββββββ¬βββββββββββββββββββ¬ββββ¬ββββββββββ¬βββββββββββββββββββββββ¬ββββββββββ¬ββββββββββββ¬βββββββββββββββ¬βββββββββββββββ
β blockNumber β type β from β to β value β β¦ β error β output β gasUsed β subtraces β traceAddress β revertReason β
β int64 β varchar β varchar β varchar β varchar β β varchar β varchar β int64 β int64 β int64[] β varchar β
βββββββββββββββΌβββββββββββββββΌβββββββββββββββββββββββΌβββββββββββββββββββββββΌβββββββββββββββββββΌββββΌββββββββββΌβββββββββββββββββββββββΌββββββββββΌββββββββββββΌβββββββββββββββΌβββββββββββββββ€
β 21104078 β CALL β 0xae2fc483527b8ef9β¦ β 0x1f2f10d1c40777aeβ¦ β 0x6f β β¦ β NULL β NULL β 192774 β 2 β NULL β NULL β
β 21104078 β CALL β 0x1f2f10d1c40777aeβ¦ β 0xabd055069a6b04dbβ¦ β 0x0 β β¦ β NULL β 0xffffffffffffffffβ¦ β 69204 β 4 β [0] β NULL β
β 21104078 β CALL β 0xabd055069a6b04dbβ¦ β 0xabec00542d141bddβ¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 25380 β 0 β [0, 0] β NULL β
β 21104078 β STATICCALL β 0xabd055069a6b04dbβ¦ β 0xc02aaa39b223fe8dβ¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 534 β 0 β [0, 1] β NULL β
β 21104078 β CALL β 0xabd055069a6b04dbβ¦ β 0x1f2f10d1c40777aeβ¦ β 0x0 β β¦ β NULL β NULL β 9274 β 1 β [0, 2] β NULL β
β 21104078 β CALL β 0x1f2f10d1c40777aeβ¦ β 0xc02aaa39b223fe8dβ¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 8862 β 0 β [0, 2, 0] β NULL β
β 21104078 β STATICCALL β 0xabd055069a6b04dbβ¦ β 0xc02aaa39b223fe8dβ¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 534 β 0 β [0, 3] β NULL β
β 21104078 β CALL β 0x1f2f10d1c40777aeβ¦ β 0x60a8ea6005f7db58β¦ β 0x0 β β¦ β NULL β NULL β 28828 β 3 β [1] β NULL β
β 21104078 β CALL β 0x60a8ea6005f7db58β¦ β 0xc02aaa39b223fe8dβ¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 6062 β 0 β [1, 0] β NULL β
β 21104078 β STATICCALL β 0x60a8ea6005f7db58β¦ β 0xabec00542d141bddβ¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 909 β 0 β [1, 1] β NULL β
β 21104078 β STATICCALL β 0x60a8ea6005f7db58β¦ β 0xc02aaa39b223fe8dβ¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 534 β 0 β [1, 2] β NULL β
β 21104078 β CALL β 0x08903a3be1e0c263β¦ β 0x3fc91a3afd70395cβ¦ β 0x0 β β¦ β NULL β NULL β 211764 β 12 β NULL β NULL β
β 21104078 β CALL β 0x3fc91a3afd70395cβ¦ β 0x000000000022d473β¦ β 0x0 β β¦ β NULL β NULL β 30786 β 1 β [0] β NULL β
β 21104078 β STATICCALL β 0x000000000022d473β¦ β 0x0000000000000000β¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 3000 β 0 β [0, 0] β NULL β
β 21104078 β CALL β 0x3fc91a3afd70395cβ¦ β 0x000000000022d473β¦ β 0x0 β β¦ β NULL β NULL β 74806 β 1 β [1] β NULL β
β 21104078 β CALL β 0x000000000022d473β¦ β 0xabec00542d141bddβ¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 71099 β 0 β [1, 0] β NULL β
β 21104078 β STATICCALL β 0x3fc91a3afd70395cβ¦ β 0xc02aaa39b223fe8dβ¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 2534 β 0 β [2] β NULL β
β 21104078 β STATICCALL β 0x3fc91a3afd70395cβ¦ β 0x60a8ea6005f7db58β¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 2504 β 0 β [3] β NULL β
β 21104078 β STATICCALL β 0x3fc91a3afd70395cβ¦ β 0xabec00542d141bddβ¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 909 β 0 β [4] β NULL β
β 21104078 β CALL β 0x3fc91a3afd70395cβ¦ β 0x60a8ea6005f7db58β¦ β 0x0 β β¦ β NULL β NULL β 50312 β 3 β [5] β NULL β
β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β
β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β
β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β Β· β
β 21104078 β STATICCALL β 0xc1994a7efddd1a42β¦ β 0xec53bf9167f50cdeβ¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 9765 β 1 β [0, 0] β NULL β
β 21104078 β DELEGATECALL β 0xec53bf9167f50cdeβ¦ β 0x17f56e911c279badβ¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 2626 β 0 β [0, 0, 0] β NULL β
β 21104078 β STATICCALL β 0xc1994a7efddd1a42β¦ β 0xc76b81d835a6ef88β¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 836 β 0 β [0, 1] β NULL β
β 21104078 β CALL β 0xc1994a7efddd1a42β¦ β 0xec53bf9167f50cdeβ¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 18011 β 1 β [0, 2] β NULL β
β 21104078 β DELEGATECALL β 0xec53bf9167f50cdeβ¦ β 0x17f56e911c279badβ¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 17369 β 0 β [0, 2, 0] β NULL β
β 21104078 β CALL β 0x1651a65f3f5e3141β¦ β 0x6801763c790abe6cβ¦ β 0xa37f19a1d960 β β¦ β NULL β NULL β 21000 β 0 β NULL β NULL β
β 21104078 β CALL β 0xcbd6832ebc203e49β¦ β 0x20c7e0f6822a0664β¦ β 0x55c390debc6000 β β¦ β NULL β NULL β 21000 β 0 β NULL β NULL β
β 21104078 β CALL β 0xa06ee26610f2a230β¦ β 0x2bfbdc1d8985a1aeβ¦ β 0x5cc4b9c46000 β β¦ β NULL β NULL β 21000 β 0 β NULL β NULL β
β 21104078 β CALL β 0x38fc712418276b5dβ¦ β 0x018a220d9d6a3c25β¦ β 0x13b983bbcb000 β β¦ β NULL β NULL β 21000 β 0 β NULL β NULL β
β 21104078 β CALL β 0x93793bd1f3e35a0eβ¦ β 0x68d3a973e7272eb3β¦ β 0x14205ce β β¦ β NULL β NULL β 121451 β 1 β NULL β NULL β
β 21104078 β CALL β 0x68d3a973e7272eb3β¦ β 0x62e0d3fd804dfbf0β¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 85580 β 4 β [0] β NULL β
β 21104078 β CALL β 0x62e0d3fd804dfbf0β¦ β 0xb528edbef013aff8β¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 12540 β 0 β [0, 0] β NULL β
β 21104078 β STATICCALL β 0x62e0d3fd804dfbf0β¦ β 0xa0b86991c6218b36β¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 9839 β 1 β [0, 1] β NULL β
β 21104078 β DELEGATECALL β 0xa0b86991c6218b36β¦ β 0x43506849d7c04f91β¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 2553 β 0 β [0, 1, 0] β NULL β
β 21104078 β CALL β 0x62e0d3fd804dfbf0β¦ β 0x68d3a973e7272eb3β¦ β 0x0 β β¦ β NULL β NULL β 16943 β 1 β [0, 2] β NULL β
β 21104078 β CALL β 0x68d3a973e7272eb3β¦ β 0xa0b86991c6218b36β¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 15052 β 1 β [0, 2, 0] β NULL β
β 21104078 β DELEGATECALL β 0xa0b86991c6218b36β¦ β 0x43506849d7c04f91β¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 14263 β 0 β [0, 2, 0, 0] β NULL β
β 21104078 β STATICCALL β 0x62e0d3fd804dfbf0β¦ β 0xa0b86991c6218b36β¦ β NULL β β¦ β NULL β 0x0000000000000000β¦ β 1339 β 1 β [0, 3] β NULL β
β 21104078 β DELEGATECALL β 0xa0b86991c6218b36β¦ β 0x43506849d7c04f91β¦ β 0x0 β β¦ β NULL β 0x0000000000000000β¦ β 553 β 0 β [0, 3, 0] β NULL β
β 21104078 β CALL β 0x95222290dd7278aaβ¦ β 0x388c818ca8b9251bβ¦ β 0xe9c0c9428e82ef β β¦ β NULL β NULL β 22111 β 0 β NULL β NULL β
βββββββββββββββ΄βββββββββββββββ΄βββββββββββββββββββββββ΄βββββββββββββββββββββββ΄βββββββββββββββββββ΄ββββ΄ββββββββββ΄βββββββββββββββββββββββ΄ββββββββββ΄ββββββββββββ΄βββββββββββββββ΄βββββββββββββββ€
β 1406 rows (40 shown) 13 columns (11 shown) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Dependent RPC Method
debug_traceBlockByNumber
Last updated