post https://scroll-testnet.unifra.io/v1/
Parameters
blockNumber
-string
The block number will be traced, hex with prefix0x
.tracer
-object
(optional) see tracer
Returns
Object
- trace objecttype
- The type of the callfrom
- The address the transaction is sent fromto
- The address the transaction is directed tovalue
- The integer of the value sent with this transactiongas
- The integer of the gas provided for the transaction executiongasUsed
- The integer of the gas usedinput
- The data given at the time of inputoutput
- The data which is returned as an outputcalls
- A list of sub-calls
Example
Request
curl --location 'https://scroll-alpha.unifra.io/v1/{your-api-key}' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"0x112",
{
"tracer": "callTracer",
"tracerConfig": {
"onlyTopCall": false,
"withLog": true
}
}
],
"id": 0
}'
Response
{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"result": {
"type": "CALL",
"from": "0x89e31727c42646b88d5f2d576bc2859434e01144",
"to": "0x5300000000000000000000000000000000000002",
"value": "0x0",
"gas": "0x48c7",
"gasUsed": "0x3671",
"input": "0xbede39b50000000000000000000000000000000000000000000000000000003135ab26b9",
"output": "0x",
"calls": [
{
"type": "STATICCALL",
"from": "0x5300000000000000000000000000000000000002",
"to": "0x5300000000000000000000000000000000000003",
"gas": "0x3437",
"gasUsed": "0xa21",
"input": "0xefc7840100000000000000000000000089e31727c42646b88d5f2d576bc2859434e01144",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
]
}
}
]
}