Skip to main content
Use stable SDK 5.0.3 to let a user pay a recipient in Base USDC from a supported source asset. The SDK quotes the required source amount, conversions and fees. Your app defines the recipient and the destination transfer, rather than constructing cross-chain funding batches itself.

Provider Setup

Mount the Quick Start provider stack. Use network="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

  1. The user selects a supported source asset and reviews its required debit and quoted fees.
  2. The SDK obtains the required wallet approvals and signatures and coordinates funding and execution.
  3. The destination USDC transfer is verified before Supply reports its transaction hash. Put required application updates in an awaited onSuccess callback.
Source transfers can require native gas. Available tokens, conversions and execution routes depend on the configured network, chains, venues, liquidity and balances. The example does not promise support for every asset or an unconditional execution time.

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, call retryFinalization() 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.