WSPN
Language
  • English
Version
  • V1.0
HomeWallet
Language
  • English
Version
  • V1.0
HomeWallet
Twitter
Telegram
Linkedin
  1. Transaction
  • Introduction
  • Get Started
  • Signature
  • What is WUSD
  • Webhook Service
  • Sandbox Environment
  • Blockchain Confirmations
  • Appendix
  • API Keys
  • Core Functionality
    • Core Functionality
    • Quickstart: Deposit via Blockchain Wallet
    • Quickstart: Withdraw via Blockchain Wallet
    • Quickstart: Deposit via Funds Transfer
    • Quickstart: Withdraw to Bank
  • Api Reference
    • Authentication
      • Get Access Token
      • Refresh Access Token
    • Wallet
      • Address
        • Get Deposit Address
        • Add Whitelist Address
        • Get Whitelist Address
        • Delete Whitelist Address
      • Remit Info
        • Get Deposit Remit Info
        • Add Remit Info
        • Edit Remit Info
        • Get Remit Info
        • Delete Remit Info
      • Transaction
        • Get Balance
          POST
        • Create Fiat Deposit
          POST
        • Create Fiat Withdraw
          POST
        • Create Crypto Withdraw
          POST
        • Get Fiat Transaction
          GET
        • Get Exchange Rate
          POST
        • Create Mint/Redeem
          POST
        • Mint/Redeem History
          POST
        • Get Mint Redeem Receipt
          POST
        • Get Fiat Transaction Receipt
          POST
        • Get Crypto Transaction Receipt
          POST
  1. Transaction

Create Crypto Withdraw

Developing
POST
/openapi/v1/crypto-transaction/withdraw
API to create a crypto withdraw transaction record and provide the corresponding
bank transfer record number.
Upon receiving a withdrawal request, this API will initiate a transfer of all
balance to of the specified cryptocurrency to the designated wallet address and
notify the user once the transaction is completed.
Before creating the transaction, the corresponding crypto withdrawal whitelist
address must be added(From Add Whitelist Address).
Withdrawal address will undergo a risk scan, and requests will be rejected if the
address is identified as high-risk.

Request

Body Params text/plain
Example
FieldTypeRequiredMax LengthDescription
queryObjectY
currencyStringYFixed value: WUSD
amountStringY20withdraw currency account all balance, decimal scale: 2
addressIdNumberY2^63 - 1From Get Whitelist Address Api Result
requestIdStringY64A unique identifier for the request.
If the same request is sent again with the same requestId, it will be rejected to prevent duplicate processing.
Example:{ "query": { "currency": "WUSD", "amount": "12345.12", "addressId": 1701, "requestId": "af52515a-4779-4b7b-898a-b46f283dbc2c" } }

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://wallet.test.wspn.io/openapi/v1/crypto-transaction/withdraw' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "query": {
        "currency": "WUSD",
        "amount": "12345.12",
        "addressId": 1701,
        "requestId": "af52515a-4779-4b7b-898a-b46f283dbc2c"
    }
}'

Responses

🟢200成功
application/json
Body
header
object 
required
success
boolean 
required
result
object 
required
id
integer 
required
currency
string 
required
amount
string 
required
mainNet
string 
required
type
string 
required
status
string 
required
transactionFee
string 
required
toAddress
string 
required
createdTime
string 
required
lastUpdatedTime
string 
required
Example
{
  "header": {
    "success": true
  },
  "result": {
    "id": 250103173001541,
    "currency": "WUSD",
    "amount": "10.00",
    "mainNet": "ETHEREUM",
    "type": "WITHDRAW",
    "status": "TO_BE_PROCESSED",
    "transactionFee": "0.00",
    "toAddress": "0x74527FCa1C36D901991Dd69f6b6bff4DFB1a979b",
    "createdTime": "2025-01-03 17:30:01",
    "lastUpdatedTime": "2025-01-03 17:30:01"
  }
}
Previous
Create Fiat Withdraw
Next
Get Fiat Transaction
Built with