aboutsummaryrefslogtreecommitdiffstats
path: root/internal
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>2018-12-19 20:54:27 +0800
commit0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e (patch)
tree2355928421e31cd680142fdd7a113f9612cc2a21 /internal
parente9850ff7750ef84c803166dc43906935a5df0004 (diff)
downloaddexon-0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e.tar
dexon-0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e.tar.gz
dexon-0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e.tar.bz2
dexon-0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e.tar.lz
dexon-0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e.tar.xz
dexon-0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e.tar.zst
dexon-0dbbf2aebc377bbe2b55c6fd24795482fdbaec1e.zip
internal/ethapi: add transactionHash in blockreceipts (#58)
Diffstat (limited to 'internal')
-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 d295aaf58..7bcf44814 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,