Skip to main content
POST
/
v1
/
withdraw
/
create
Prime Wallet Withdrawal
curl --request POST \
  --url https://api.openxswitch.com/v1/withdraw/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "coin": "<string>",
  "chain": "<string>",
  "withdrawalAddress": "<string>",
  "amount": "<string>",
  "clientTxId": "<string>",
  "fee": "0.01",
  "memo": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "wd_001",
    "workspaceId": "67804918f2b05ac82a129441",
    "clientTxId": null,
    "coin": "BTC",
    "chain": "BTC",
    "amount": 100,
    "network": "Ethereum",
    "fromAddress": "0xFromAddress001",
    "toAddress": "0xToAddress001",
    "hash": null,
    "transactionLink": null,
    "status": "success",
    "networkFee": 1,
    "tagMemo": null,
    "confirmation": 0,
    "confirmedAt": null,
    "createdAt": null,
    "walletId": "678a39d6b731ad1ad8832c8a"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.openxswitch.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
coin
string
required

The token name. Only rechargeable currencies are accepted.

Refer to the Get Recharge Currencies endpoint for the list of supported currencies.

chain
string
required

The 'chain' name.

Refer to the Get Recharge Currencies endpoint for the list of supported chains.

withdrawalAddress
string
required

The withdrawal address

amount
string
required

The amount to withdraw

clientTxId
string

Unique ID for tracking the client's request.

fee
string

fee is optional as the system automatically selects the best possible fee to minimize transaction delays and ensure faster processing. Use the Fee Estimate endpoint to estimate the fee.

Example:

"0.01"

memo
string

An optional memo for the withdrawal

Response

success
boolean
required
Example:

true

data
object
required