Parameters:
Returns:
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.
BlockHash - String of the block hash.
BlockNumber - Quantity.
Result - ParityTraceResult object which has the following fields:
GasUsed - Quantity
Output - Data
Address - Address
Code - Data
Subtraces - Quantity.
TraceAddress - Array.
TransactionHash - Hash.
TransactionPosition - Quantity.
Type - String.
Error - String.
Code Examples:
require 'ethereum.rb' client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') transaction = client.send_command('trace_transaction', ['0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d']) puts transaction["result"]
from web3 import HTTPProvider client = HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') result = client.make_request("trace_transaction", ["0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d"]) print(result)
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"trace_transaction","params":["0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d"],"id":1,"jsonrpc":"2.0"}'
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_transaction", [ "0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d", ]); console.log(transaction); })();