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-03-12 12:19:09 +0800
commit3ea471f0ccef747435222bca4766f9a13af0e75e (patch)
tree1b927bf69e88f9c9589316d424b4e19751661b1f
parentc80f904af0488dcf1ba5517a2aee2fcccf9d9337 (diff)
downloaddexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar
dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar.gz
dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar.bz2
dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar.lz
dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar.xz
dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar.zst
dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.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 a06e5e0e8..52b11aab9 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,