Withdraw Onchain
Withdraw your Cashramp balance to an external wallet as a supported stablecoin.
Create the Withdrawal
mutation {
withdrawOnchain(
address: "0xc8802fEaB2FaFb48B7d1aDe77e197002c210f391"
amountUsd: 200
network: "BASE"
symbol: "USDC"
metadata: { payoutId: "payout_123" }
) {
id # Track this ID or wait for the webhook (see below)
quantity
symbol
network
fee
status
}
}Arguments
address
String!
Yes
Destination wallet address. It must be valid for the selected network.
amountUsd
Decimal!
Yes
USD amount to withdraw. The minimum, maximum, and network fee depend on the selected stablecoin-network pair.
network
String
No
Destination network code. Defaults to OP.
symbol
String
No
Stablecoin to send. Defaults to USDT.
metadata
JSON
No
Your own key-value data for reconciliation. Cashramp includes it in onchain_tx.updated webhooks.
travelRuleInfo
TravelRuleInfoInput
No
Destination ownership information. It contains selfOwned, beneficiaryName, and vaspName.
Supported Networks
Optimism
OP
USDT, USDC
$1.00
Celo
CELO
USDT, USDC, CUSD
$0.50
Base
BASE
USDC
$0.10
Polygon
MATIC
USDC
$0.50
Binance Smart Chain
BSC
USDT, USDC
$0.50
Solana
SOL
USDT, USDC
$1.00
symbol and network are validated together. Specify both when you do not want the default USDT on OP route. Fees and withdrawal limits vary by pair; the transaction response includes the applied fee.
The mutation fails if:
The stablecoin or stablecoin-network pair is unsupported.
addressis invalid on the selected network.amountUsdis outside the selected pair's withdrawal limits.Your Cashramp balance cannot cover
amountUsdplus the returnedfee.
Receive Status Updates
You’ll get a onchain_tx.updated webhook as the transaction progresses.
The withdrawal status is pending, processing, completed, failed, or canceled. Use the webhook (or poll onchainWithdrawal(id)) to confirm finality before updating your ledger.
Last updated