WSPN
Language
  • English
Version
  • V1.0
HomeWallet
Language
  • English
Version
  • V1.0
HomeWallet
Twitter
Telegram
Linkedin
  1. Core Functionality
  • 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
        • Create Fiat Deposit
        • Create Fiat Withdraw
        • Create Crypto Withdraw
        • Get Fiat Transaction
        • Get Exchange Rate
        • Create Mint/Redeem
        • Mint/Redeem History
        • Get Mint Redeem Receipt
        • Get Fiat Transaction Receipt
        • Get Crypto Transaction Receipt
  1. Core Functionality

Quickstart: Withdraw via Blockchain Wallet

Learn the basics of sending funds from your WSPN account to an external blockchain wallet.
Sending funds from your WSPN Account to external blockchain wallets is one of the most basic primitives (building blocks) enabled by the APIs. This quickstart walks through sending WUSD externally.

1. Get an API key#

WSPN's APIs use API Keys as the mechanism to authenticate client requests. The API key must be set in the Authorization header of the request sent from your backend server. The format of the header is Bearer access_token.
To obtain an API key for the sandbox environment, simply create an account and generate a new key in settings - it only takes a few seconds.
GET AN API KEY
Once you have generated your API key, record it in a secure place.

2. Add a whitelist address#

Add your wallet address to the whitelist to ensure that your wallet can normally receive the withdrawn WUSD. you can use the Add Whitelist Address API endpoint.
Request:
Response
{
  "header": {
    "success": true
  },
  "result": {
    "id": 1856,
    "address": "0xDDDD40DD84D577254C2F9B9DC1498C339866ED1C",
    "mainNet": "POLYGON",
    "riskLevel": "LOW_RISK",
    "label": "gerry",
    "createdTime": "2025-01-03 11:19:31"
  }
}

3. Get whitelist address#

Check the whitelist address to ensure that your wallet address has been correctly added.To that end. you can use the Get Whitelist Address API endpoint.
Request:
Response
{
  "header": {
    "success": true
  },
  "resultList": [
    {
      "id": 1856,
      "address": "0xDDDD40DD84D577254C2F9B9DC1498C339866ED1C",
      "label": "gerry",
      "mainNet": "POLYGON",
      "riskLevel": "LOW_RISK",
      "createdTime": "2025-01-03 11:19:31",
      "lastUpdatedTime": "2025-01-03 11:19:31"
    } 
  ]
}

4. Create Crypto Withdraw request#

Submit your cryptocurrency withdrawal request, and once approved by the administrator, you will be able to receive your withdrawal funds. you can use the Create Crypto Withdraw API endpoint.
Request:
Response
{
  "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"
  }
}

5. Get Crypto Transaction Receipt#

After completing the crypto withdrawal, you can generate a PDF format withdrawal report through the Get Crypto Transaction Receipt API.
Request:
Response
Content-Type: application/pdf
Content-Disposition: attachment; filename="Crypto-Withdraw-241204124728118
20241211001439.pdf"
content-length: 349724
šŸŽ‰ Congratulations. You have successfully withdrawal crypto using WSPN's APIs.
Previous
Quickstart: Deposit via Blockchain Wallet
Next
Quickstart: Deposit via Funds Transfer
Built with