diff options
author | johnliu-dexon <42129254+johnliu-dexon@users.noreply.github.com> | 2018-11-27 22:56:00 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:19 +0800 |
commit | eea0925b09140f99cbf401fd0b8a50958e711bde (patch) | |
tree | e04f41cbc8f9e2210a4cd813536ba8071446c01d | |
parent | a659b8bf85b4add36e63dabe3481ab07d78d6564 (diff) | |
download | go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.gz go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.bz2 go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.lz go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.xz go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.zst go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.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 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, |