Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,13 @@ func (api *BlockChainAPI) GetBlockReceipts(ctx context.Context, blockNrOrHash rp
return result, nil
}

// GetReceiptsByHash returns all transaction receipts for the canonical block
// identified by the given block hash. Unlike GetBlockReceipts, this method
// only accepts a block hash and requires the block to be on the canonical chain.
func (api *BlockChainAPI) GetReceiptsByHash(ctx context.Context, blockHash common.Hash) ([]map[string]interface{}, error) {
return api.GetBlockReceipts(ctx, rpc.BlockNumberOrHashWithHash(blockHash, true))
}

// OverrideAccount indicates the overriding fields of account during the execution
// of a message call.
// Note, state and stateDiff can't be specified at the same time. If state is
Expand Down
Loading