Creates a new UptoEvmServerScheme instance.
Optional configuration options for the scheme
StaticgetGet all supported networks
Array of network identifiers in CAIP-2 format
StaticisCheck if a network is supported
The network identifier to check
True if the network is supported
Register a custom money parser in the parser chain.
Custom function to convert amount to AssetAmount
The server instance for chaining
Parses a price into an asset amount for maxAmount.
The price to parse (represents maxAmount)
The network to use
Promise resolving to the parsed asset amount
Enhance payment requirements for the upto scheme.
Base payment requirements
The supported kind from facilitator
T402 protocol version
Payment scheme
Network identifier
Optionalextra?: Record<string, unknown>Extra configuration
Extensions supported by the facilitator
Enhanced payment requirements for upto scheme
EVM server implementation for the Up-To payment scheme.
Enables usage-based billing by creating payment requirements that authorize up to a maximum amount, with actual settlement determined by usage.
Example