Provider Setup
Mount the Quick Start provider stack. Usenetwork="mainnet",
enable the chains your integration supports, and configure production RPC endpoints for the chains
you exercise. Reuse your existing Privy and wagmi setup.
Fixed Destination Payment
This component takes the recipient and a decimal USDC amount, such as"10", from your application.
The recipient must be the intended payment destination. It is independent of the wallet that funds
or executes the action.
paymentAmount fixes the destination amount. The builder receives that amount as a raw
destination-token bigint, while the selected source asset can have different decimals. Let the SDK
calculate the source spend and Max. Do not derive them by copying the destination amount.
For a custom payment form, use useSpiceSupply with the same amountDirection: "output",
paymentAmount, destination and builder. See Custom UI Integration.
Review and Execution
- The user selects a supported source asset and reviews its required debit and quoted fees.
- The SDK obtains the required wallet approvals and signatures and coordinates funding and execution.
- The destination USDC transfer is verified before Supply reports its transaction hash. Put required
application updates in an awaited
onSuccesscallback.
Interrupted Payments
An accepted action can continue on the backend after the form closes. A timeout does not prove the payment failed. Use the controller’s original action status and destination receipts before another submission. For a failed application update after payment, callretryFinalization() instead of
paying again. See Recovery and Completion.
For direct HTTP integrations, use the current Actions API
and core signing helpers. The SDK example above does not require handling private keys, manually
creating delegation authorizations or constructing a separate funding workflow.