API Reference
Web3 API
- Basic API
- Balance API
- Token API
- NFT API
- Domain API
- Label API
SQL API
- Alpha
- Classic(Deprecated)
trace_transaction
Returns traces for the given transaction
Parameters
DATA, 32 Bytes - The transaction’s hash
Returns
Object - An object of type AdhocTraceArray, see trace_filter.
POST
/
{api-key}
curl --request POST \
--url https://{network}.s.chainbase.online/v1/{api-key} \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": [
"0x0b8f9635aad56d18381d2fd7ad0578cd54fb316b0b017948a3048915cfd29034"
]
}'
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"action": {
"from": "<string>",
"callType": "<string>",
"gas": "<string>",
"input": "<string>",
"to": "<string>",
"value": "<string>"
},
"blockHash": "<string>",
"blockNumber": "<string>",
"result": {
"gasUsed": "<string>",
"output": "<string>"
},
"subtraces": 123,
"traceAddress": [
123
],
"transactionHash": "<string>",
"transactionPosition": 123,
"type": "<string>"
}
]
}
Path Parameters
Example:
"demo"
Body
application/json
Response
200 - application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://{network}.s.chainbase.online/v1/{api-key} \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": [
"0x0b8f9635aad56d18381d2fd7ad0578cd54fb316b0b017948a3048915cfd29034"
]
}'
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"action": {
"from": "<string>",
"callType": "<string>",
"gas": "<string>",
"input": "<string>",
"to": "<string>",
"value": "<string>"
},
"blockHash": "<string>",
"blockNumber": "<string>",
"result": {
"gasUsed": "<string>",
"output": "<string>"
},
"subtraces": 123,
"traceAddress": [
123
],
"transactionHash": "<string>",
"transactionPosition": 123,
"type": "<string>"
}
]
}