mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
client: TraceTransaction
This commit is contained in:
parent
b00bf73267
commit
d26b46434a
1 changed files with 7 additions and 0 deletions
|
|
@ -66,6 +66,13 @@ func (c *Client) TraceCall(ctx context.Context, callArgs interface{}) (*tracers.
|
||||||
return &result, err
|
return &result, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TraceTransaction: fetches a specific transaction
|
||||||
|
func (c *Client) TraceTransaction(ctx context.Context, txHash string) (*tracers.TraceResult, error) {
|
||||||
|
var result tracers.TraceResult
|
||||||
|
err := c.rpcClient.CallContext(ctx, &result, "debug_traceTransaction", txHash, nil)
|
||||||
|
return &result, err
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Close closes the underlying RPC connection.
|
// Close closes the underlying RPC connection.
|
||||||
func (ec *Client) Close() {
|
func (ec *Client) Close() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue