BlockPI Network
Search
K

debug_traceCall

The method lets you run an eth_call within the context of the given block execution using the final state of parent block as the base.

Parameters:

Object - The transaction call object
  • from: DATA, 20 Bytes - String of the address the transaction is sent from
  • to: DATA, 20 Bytes - String of the address the transaction is directed to
  • gas: QUANTITY - Integer of the gas provided for the transaction execution
  • gasPrice: QUANTITY - Integer of the gasPrice used for each paid gas
  • value: QUANTITY - Integer of the value sent with this transaction
  • data: DATA - Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI in the Solidity documentation
  • QUANTITY|TAG - integer block number, or the string "latest"
Object - tracer
  • tracer: string - the type of tracer. Currently supports callTracer and prestateTracer

Returns:

Array - Block traces

Example:

// Request
curl https://polygon.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceCall","params":[{"from":"0xdeadbeef29292929192939494959594933929292","to":"0xde929f939d939d393f939393f93939f393929023","data":"0xf00d4b5d00000000000000000000000001291230982139282304923482304912923823920000000000000000000000001293123098123928310239129839291010293810"}, "latest"],"id":1,"jsonrpc":"2.0"}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": -
}