From eea0925b09140f99cbf401fd0b8a50958e711bde Mon Sep 17 00:00:00 2001 From: johnliu-dexon <42129254+johnliu-dexon@users.noreply.github.com> Date: Tue, 27 Nov 2018 22:56:00 +0800 Subject: internal/ethapi: add transactionHash in blockreceipts (#58) --- internal/ethapi/api.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal') 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, -- cgit v1.2.3