Skip to content

rcpx v0.3.0

Choose a tag to compare

@yermakovsa yermakovsa released this 14 Jun 14:22
· 14 commits to main since this release
c2138d4

Adds configurable non-idempotent JSON-RPC methods.

This release adds Config.AdditionalNonIdempotentMethods, which lets callers mark extra JSON-RPC method names as unsafe to replay.

Configured methods are additive. The built-in non-idempotent methods remain unchanged: eth_sendTransaction and eth_sendRawTransaction.

AllowNonIdempotent applies to both built-in and configured methods.

Changes

  • Add Config.AdditionalNonIdempotentMethods
  • Treat configured method names as non-idempotent in addition to the built-ins
  • Validate configured method names during transport creation
  • Preserve conservative batch behavior
  • Update README documentation