PaymentRequest.from
Create a payment request
Creates a payment request from the given parameters.
PaymentRequest is the root mppx namespace for serialized payment request
payloads. Server HTTP helpers use the separate Request namespace under
mppx/server.
Usage
import { } from 'mppx'
const = .({
: '1000000',
: '0x20c0000000000000000000000000000000000000',
: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
})Return type
type ReturnType = requestThe request object passed in (identity function for type inference).
Parameters
request
- Type:
Record<string, unknown>
Request parameters. The shape depends on the intent being used.