Creates a new ExactLegacyEvmScheme instance.
Optional configuration options for the scheme
StaticgetGet all supported networks that have legacy tokens
Array of network identifiers with legacy token support
StaticisCheck if a network has legacy token support
The network identifier to check
True if the network has legacy token support
Register a custom money parser in the parser chain.
Custom function to convert amount to AssetAmount
The scheme instance for method chaining
Parses a price into an asset amount for legacy tokens.
The price to parse (Money or AssetAmount)
The network identifier in CAIP-2 format
Promise resolving to the parsed asset amount
Build payment requirements for this scheme/network combination. Adds the spender (facilitator) address to the extra field.
The base payment requirements to enhance
The supported kind from facilitator
The t402 protocol version
The logical payment scheme identifier
The network identifier in CAIP-2 format
Optionalextra?: Record<string, unknown>Optional extra metadata with spender address
Extension keys supported by the facilitator (unused)
Promise resolving to enhanced payment requirements
EVM server implementation for the exact-legacy payment scheme. Supports legacy tokens that use approve + transferFrom pattern.