File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3287,10 +3287,18 @@ export class EthImpl implements Eth {
3287
3287
3288
3288
/**
3289
3289
* Gets all transaction receipts for a block by block hash or block number.
3290
+ *
3291
+ * @rpcMethod Exposed as eth_getBlockReceipts RPC endpoint
3292
+ * @rpcParamValidationRules Applies JSON-RPC parameter validation according to the API specification
3293
+ *
3290
3294
* @param {string } blockHashOrBlockNumber The block hash, block number, or block tag
3291
3295
* @param {RequestDetails } requestDetails The request details for logging and tracking
3292
3296
* @returns {Promise<Receipt[]> } Array of transaction receipts for the block
3293
3297
*/
3298
+ @rpcMethod
3299
+ @rpcParamValidationRules ( {
3300
+ 0 : { type : ParamType . BLOCK_NUMBER_OR_HASH , required : true } ,
3301
+ } )
3294
3302
public async getBlockReceipts ( blockHashOrBlockNumber : string , requestDetails : RequestDetails ) : Promise < Receipt [ ] > {
3295
3303
const requestIdPrefix = requestDetails . formattedRequestId ;
3296
3304
if ( this . logger . isLevelEnabled ( 'trace' ) ) {
You can’t perform that action at this time.
0 commit comments