Skip to content

RPC request params validation #166

@shunsukew

Description

@shunsukew

Some RPC methods body params should be validated before reaching backend nodes.
One use-case we can come up with is block range, it would be nice if we could validate and return an error if requested block ranges exceed the configured number allowed.

Possible ideas are

  • using the name validate middleware for future extendability and rename existing validate middleware to debug for example.
  • building another middleware called block_range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions