Parameters:
vmTrace - To get a full trace of virtual machine's state during the execution of the given of given transaction, including for any subcalls.
trace - To get the basic trace of the given transaction.
stateDiff - To get information on altered Ethereum state due to execution of the given transaction.
Returns:
Output - String.
TransactionHash - String of the transaction hash.
VmTrace - ParityVmTrace Object, which has the following fields:
Code - String.
Operations - array of ParityVmOperationTrace objects.
Action - ParityTrace Object, which has the following fields:
TraceAddress - Array.
CallType - String.
IncludeInTrace - Boolean.
IsPrecomplied - Boolean.
Type - String.
CreationMethod - String.
From - Address.
To - Address.
Gas - Quantity.
Value - Quantity.
Input - Data.
Result - ParityTraceResult object which has the following fields:
GasUsed - Quantity
Output - Data
Address - Address
Code - Data
Subtraces - Array.
Author - Address.
RewardType - String.
Error - String.
StateChanges - Array.
Code Examples:
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"trace_replayTransaction","params":["0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d",["trace"]],"id":1,"jsonrpc":"2.0"}'
from web3 import HTTPProvider client = HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') result = client.make_request('trace_replayTransaction', ['0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d',['trace']]) print(result)
require 'ethereum.rb' client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') transaction = client.send_command('trace_replayTransaction', ['0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d',['trace']]) puts transaction["result"]
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); const transaction = await provider.send("trace_replayTransaction", [ "0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d", ["trace"], ]); console.log(transaction); })();