mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
parent
d421337df5
commit
dd76f3425a
1 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ type BlockTrace struct {
|
||||||
type TransactionTrace struct {
|
type TransactionTrace struct {
|
||||||
Type uint8 `json:"type"`
|
Type uint8 `json:"type"`
|
||||||
Nonce uint64 `json:"nonce"`
|
Nonce uint64 `json:"nonce"`
|
||||||
|
TxHash string `json:"txHash"`
|
||||||
Gas uint64 `json:"gas"`
|
Gas uint64 `json:"gas"`
|
||||||
GasPrice *hexutil.Big `json:"gasPrice"`
|
GasPrice *hexutil.Big `json:"gasPrice"`
|
||||||
From common.Address `json:"from"`
|
From common.Address `json:"from"`
|
||||||
|
|
@ -62,6 +63,7 @@ func newTraceTransaction(tx *Transaction, blockNumber uint64, config *params.Cha
|
||||||
v, r, s := tx.RawSignatureValues()
|
v, r, s := tx.RawSignatureValues()
|
||||||
result := &TransactionTrace{
|
result := &TransactionTrace{
|
||||||
Type: tx.Type(),
|
Type: tx.Type(),
|
||||||
|
TxHash: tx.Hash().String(),
|
||||||
Nonce: tx.Nonce(),
|
Nonce: tx.Nonce(),
|
||||||
ChainId: (*hexutil.Big)(tx.ChainId()),
|
ChainId: (*hexutil.Big)(tx.ChainId()),
|
||||||
From: from,
|
From: from,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue