diff options
author | johnliu-dexon <42129254+johnliu-dexon@users.noreply.github.com> | 2018-11-27 22:56:00 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | 69f196ff89626fc365c15a6c7b5db81a48b592a4 (patch) | |
tree | 0ff86805518a1ec21c8456a074036afecdcf7c38 /internal/ethapi/api.go | |
parent | 1c3668d88737ab03c489f488e8a968a7de3ba50a (diff) | |
download | dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar.gz dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar.bz2 dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar.lz dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar.xz dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar.zst dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.zip |
internal/ethapi: add transactionHash in blockreceipts (#58)
Diffstat (limited to 'internal/ethapi/api.go')
-rw-r--r-- | internal/ethapi/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 2226bebb1..1be3bb413 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -683,6 +683,7 @@ func (s *PublicBlockChainAPI) GetBlockReceiptsByHash(ctx context.Context, blockH resp := make([]map[string]interface{}, 0, len(receipts)) for _, receipt := range receipts { fields := map[string]interface{}{ + "transactionHash": receipt.TxHash, "gasUsed": hexutil.Uint64(receipt.GasUsed), "cumulativeGasUsed": hexutil.Uint64(receipt.CumulativeGasUsed), "contractAddress": nil, |