USDCtoFiat Cash-Out
Teaches coding agents to cash out native Base USDC through USDCtoFiat by Galleon. The golden path is one function: cashout({ mode: "fast" | "best" }) from @usdctofiat/offramp on a real viem WalletClient (chain_id: 8453). Fast uses the live oracle route at 0% spread (TOFIAT). Best delegates pricing to the Delegate vault at 10 bps on USDC. Both modes are valid; the user must choose.
SDK support is technical compatibility, not permission from a payment provider. Wise currently prohibits receiving P2P crypto-sale payments. PayPal may require preapproval for cryptocurrency-related payments. Read the provider's current first-party policy before offering a route.
import { cashout } from "@usdctofiat/offramp";
import type { WalletClient } from "viem";
export async function sellUsdc(signer: WalletClient) {
return cashout({
mode: "fast",
signer,
amount: "100",
currency: "EUR",
platform: "revolut",
payee: "alice",
});
}
Persist depositId immediately. Fast depositId is the composite resume key for createOfframp().watch(). Best depositId is the numeric EscrowV2 id for deposits() / close(). Production Base only. No sandbox.
Installation
No source-backed install or usage instructions could be extracted automatically. Review the upstream project before running this skill in a sensitive workflow.