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-03-12 12:19:09 +0800 |
commit | 3ea471f0ccef747435222bca4766f9a13af0e75e (patch) | |
tree | 1b927bf69e88f9c9589316d424b4e19751661b1f | |
parent | c80f904af0488dcf1ba5517a2aee2fcccf9d9337 (diff) | |
download | dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar.gz dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.tar.zst dexon-3ea471f0ccef747435222bca4766f9a13af0e75e.zip |
internal/ethapi: add transactionHash in blockreceipts (#58)
-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 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, |