BlockReceipts returns the receipts of a given block number or hash.
(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash)
| 112 | |
| 113 | // BlockReceipts returns the receipts of a given block number or hash. |
| 114 | func (ec *Client) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error) { |
| 115 | var r []*types.Receipt |
| 116 | err := ec.c.CallContext(ctx, &r, "eth_getBlockReceipts", blockNrOrHash.String()) |
| 117 | if err == nil && r == nil { |
| 118 | return nil, ethereum.NotFound |
| 119 | } |
| 120 | return r, err |
| 121 | } |
| 122 | |
| 123 | type rpcBlock struct { |
| 124 | Hash common.Hash `json:"hash"` |
nothing calls this directly
no test coverage detected