Register a custom money parser in the parser chain. Multiple parsers can be registered - they will be tried in registration order. Each parser receives a decimal amount (e.g., 1.50 for $1.50). If a parser returns null, the next parser in the chain will be tried. The default parser is always the final fallback.
Custom function to convert amount to AssetAmount (or null to skip)
The server instance for chaining
Parses a price into an asset amount. If price is already an AssetAmount, returns it directly. If price is Money (string | number), parses to decimal and tries custom parsers. Falls back to default conversion if all custom parsers return null.
The price to parse
The network to use
Promise that resolves to the parsed asset amount
Build payment requirements for this scheme/network combination.
Base payment requirements with amount/asset already set
The supported kind from facilitator's /supported endpoint
Extensions supported by the facilitator
Enhanced payment requirements ready to be sent to clients
StaticgetGet all supported networks
StaticisCheck if a network is supported
NEAR server implementation for the Exact-Direct payment scheme. Handles price parsing and converts user-friendly amounts to token amounts.