Pay, Fund, Earn, and Swap) accepts the props below in addition to its own destination and source props. All are optional except apiKey, and to.recipient, to.token, to.chain, and to.amount on Pay.
Required
Destination and source
ChainIdentifier is a chain name such as "polygon", a chain ID such as 137, or a viem Chain object.
Appearance
Brand the widget by overriding its CSS variables:
Wallets
Routing
Callbacks
Each widget has start, success, and error callbacks named for its flow:
Every widget also accepts these:
Callbacks that fire after quoting include
sessionId and intentId. intentId is the ID to pass to GetIntentReceipt when confirming the result on your server. It is null when the payment needed no route, such as a same-token transfer on the same chain. Start callbacks fire before quoting and include only sessionId.