aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjohnliu-dexon <42129254+johnliu-dexon@users.noreply.github.com>2018-11-27 22:56:00 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:54 +0800
commit69f196ff89626fc365c15a6c7b5db81a48b592a4 (patch)
tree0ff86805518a1ec21c8456a074036afecdcf7c38
parent1c3668d88737ab03c489f488e8a968a7de3ba50a (diff)
downloaddexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar.gz
dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.tar.zst
dexon-69f196ff89626fc365c15a6c7b5db81a48b592a4.zip
internal/ethapi: add transactionHash in blockreceipts (#58)
-rw-r--r--internal/ethapi/api.go1
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,