On-Off Ramp
Supported Stablecoins
See Supported Assets for fees and token contracts. The hosted Onchain Ramp accepts USDC on BASE, OP, CELO, MATIC, BSC and SOL, and USDT and CUSD on CELO. Network fees are deducted from the customer’s payout.
Getting Started
All you need is a public API key. Create one by following the authentication guide.
The ramp is delivered as a URL you build with query parameters.
Base URLs
Staging
https://staging.useaccrue.com/hosted/ramp
Production
https://useaccrue.com/hosted/ramp
URL Parameters
key
Yes
Your public API key.
paymentType
Yes
deposit or withdrawal.
address
No
Wallet to receive funds. If omitted, Cashramp tries window.ethereum.
coin
Yes
Stablecoin symbol (see table above).
network
Yes
Network name from the table.
amount
No
Quantity of the stablecoin.
reference
No
Your idempotent reference.
redirectUrl
No
Where to send the user after completion.
currency
No
ISO-4217 fiat code (e.g., USD).
phone
No
Customer’s phone number.
hideAddress
No
true to hide the wallet address field.
isWalletContext
No
Set false to ignore window.ethereum and use your own flow. Default true.
Custom Crypto-Deposit Flow
When window.ethereum is present, Cashramp prompts the user to sign the transfer automatically.
If it isn’t, we emit a postMessage so you can run your own UX:
Confirm Transaction
After broadcasting the transfer, poll confirmTransaction until it settles.
Poll in line with block times: CELO & Optimism ≈ 10 s; Ethereum ≈ 60 s.
paymentRequest
Global ID from the earlier crypto.requested payload.
transactionHash
Hash of your on-chain transfer.
What Happens Next
The payment request moves from
pending_funding→created.A webhook fires with the updated status.
Cashramp emails the user a link to withdraw the fiat equivalent.
Last updated