Cashramp
  • Introduction
    • Getting Started
    • API Endpoints
    • Authentication
    • Webhooks
    • Integration Guide
    • SDKs
  • Hosted payments
    • Deposits
    • Withdrawals
    • Cancel Payment
  • Onchain Payments
    • On-Off Ramp
  • Cashramp API
    • Queries
    • Customers
    • Payment Methods
    • Withdraw Onchain
Powered by GitBook
On this page
  1. Cashramp API

Withdraw Onchain

Withdraw your Cashramp balance onchain to a wallet address

Cashramp's API lets you withdraw your USD stablecoin balance to a wallet address in minutes.

How to withdraw to a wallet address

withdrawOnchain.gql
mutation {
    withdrawOnchain(
        address: "0xc8802fEaB2FaFb48B7d1aDe77e197002c210f391",
        amountUsd: 200,
        network: "OP"
    ) {
        id
    }
}

Request

  • address: The wallet address to which you want to withdraw.

  • amountUsd: The USD amount you want to withdraw from your Cashramp balance.

  • network: The chain to which you wish to withdraw the stablecoins.

Network
Code
Settlement
Fee

Optimism

OP

<1 min

$1

Celo

CELO

<5 secs

$0.01

TRON

TRX

<1 min

$5

Please note that this mutation will return an error if:

  • The destination wallet address is invalid

  • The amount is less than the minimum of $10

You will receive a webhook event when the status of the onchain transaction changes.

{
  "event_type": "onchain_tx.updated",
  "data": {
    "id": "VHlwZXM6Ok9uY2hhaW5UeC1hYzNmODk2Mi1jNzRkLTRmNWMtYTQ5ZC1kYmIzMWM1MDc5Mzc=",
    "address": "TPy5hAiyWeKoUHAnAUSoK8YuqbTx75X8xX",
    "status": "completed", // can also be failed, canceled
    "quantity": 200,
    "fee": 5,
    "symbol": "USDT",
    "network": "TRX",
    "txhash": "8e473aa19bcb2ce3107fc16b88effda50a21d6853a7db67e357abf312c26eaf7"
  }
}
PreviousPayment Methods

Last updated 13 days ago