| name | moonpay-virtual-account |
| description | Set up a virtual account for fiat on-ramp and off-ramp. Covers KYC, wallet registration, bank accounts, onramp (fiat to stablecoin), and offramp (stablecoin to fiat). |
| tags | ["fiat"] |
Virtual account (fiat on-ramp & off-ramp)
Goal
Set up and use a MoonPay virtual account to convert between fiat (USD/EUR) and stablecoins (USDC/USDT/EURC) on Solana, Ethereum, Polygon, Base, or Arbitrum.
Setup flow
1. Create account and start KYC
mp virtual-account create
This creates the account and starts KYC verification automatically. It returns a URL to complete identity verification.
2. Check account status
mp virtual-account retrieve
The status field shows where you are. The nextStep field tells you what to do next.
3. KYC verification
mp virtual-account kyc continue
mp virtual-account kyc restart
4. Accept required agreements
mp virtual-account agreement list
Important: Before accepting any agreement, show the user the agreement name and URL from the list output and ask them to open and review it. Only proceed once the user explicitly confirms they have read and agree to the terms.
mp virtual-account agreement accept --contentId <content-id>
mp virtual-account agreement list --status accepted
5. Register a wallet
mp virtual-account wallet register --wallet main --chain solana
This creates the verification message, signs it locally, and registers — all in one command. Supported chains: solana, ethereum, polygon, base, arbitrum.
mp virtual-account wallet list
Onramp (fiat to stablecoin)
mp virtual-account onramp create \
--name "My Onramp" \
--fiat USD \
--stablecoin USDC \
--wallet <registered-wallet-address> \
--chain solana
mp virtual-account onramp retrieve --onrampId <id>
mp virtual-account onramp list
mp virtual-account onramp update --onrampId <id> --chain ethereum
mp virtual-account onramp cancel --onrampId <id>
mp virtual-account onramp payment create \
--onrampId <id> \
--amount 100 \
--fiat USD
mp virtual-account onramp payment retrieve \
--onrampId <id> \
--paymentId <payment-id>
Offramp (stablecoin to fiat)
Register a bank account first
mp virtual-account bank-account register \
--currency USD \
--type ACH \
--accountNumber <number> \
--routingNumber <number> \
--providerName "Chase" \
--providerCountry US \
--givenName John \
--familyName Doe \
--email john@example.com \
--phoneNumber +14155551234 \
--address.street "123 Main St" \
--address.city "New York" \
--address.state NY \
--address.country US \
--address.postalCode 10001
mp virtual-account bank-account list
mp virtual-account bank-account delete --bankAccountId <id>
Create and use an offramp
mp virtual-account offramp create \
--name "My Offramp" \
--bankAccountId <bank-account-id> \
--stablecoin USDC \
--chain solana
mp virtual-account offramp list
mp virtual-account offramp retrieve --offrampId <id>
mp virtual-account offramp update --offrampId <id> --fiat EUR
mp virtual-account offramp cancel --offrampId <id>
mp virtual-account offramp initiate \
--wallet main \
--offrampId <id> \
--amount 100
Other commands
mp virtual-account transaction list
Related skills
- moonpay-auth — Login and wallet setup (required before virtual account)
- moonpay-check-wallet — Check stablecoin balances
- moonpay-swap-tokens — Swap or bridge stablecoins after onramp