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: Deposit via Blockchain Wallet

Learn the basics of sending funds to your WSPN account from an external blockchain wallet.
This quickstart walks through sending WUSD on Ethereum、Polygon、Viction blockchain from a wallet to your WSPN Mint Account.

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. Get a deposit address#

To send funds to your WSPN Mint Account on-chain, you will first need to get a deposit address. To that end, you can use the Get Deposit Address API endpoint.
In the following example make substitutions for the following placeholder keys:
Replace ${YOUR SIGNATURE DATA} with your signature data. To that end,you can use the Signature algorithm to get your signature data.
Replace ${YOUR Authorization DATA} with your access_token data.
Request:
Response
{
  "header": {
    "success": true
  },
  "result": {
    "address": "0xDDDD40DD84D577254C2F9B9DC1498C339840ED1C"
  }
}

3. Deposit to your account#

Blockchain deposits can only be initiated from your respective wallet so this part of the deposit process will take place outside of WSPN’s API.
Using the wallet address returned in the previous step, you will send funds from your blockchain wallet to your WSPN Mint Account.
You must confirm the blockchain network is consistent with the address you requested from WSPN and the wallet you’re using to make this transfer, or you could lose funds.

4. Check the latest balance#

You can use the Get Balance API endpoint to retrieve the balance of funds available for use in your account.
Request:
Response
{
  "header": {
    "success": true
  },
  "resultList": [
    {
      "currency": "WUSD",
      "availableBalance": "0.00",
      "processingBalance": "0.00",
      "totalBalance": "0.00"
    },
    {
      "currency": "USD",
      "availableBalance": "100.00",
      "processingBalance": "0.00",
      "totalBalance": "100.00"
    },
    {
      "currency": "SGD",
      "availableBalance": "0.00",
      "processingBalance": "0.00",
      "totalBalance": "0.00"
    },
    {
      "currency": "AUD",
      "availableBalance": "0.00",
      "processingBalance": "0.00",
      "totalBalance": "0.00"
    },
    {
      "currency": "JPY",
      "availableBalance": "0",
      "processingBalance": "0",
      "totalBalance": "0"
    },
    {
      "currency": "HKD",
      "availableBalance": "0.00",
      "processingBalance": "0.00",
      "totalBalance": "0.00"
    },
    {
      "currency": "GBP",
      "availableBalance": "0.00",
      "processingBalance": "0.00",
      "totalBalance": "0.00"
    },
    {
      "currency": "EUR",
      "availableBalance": "0.00",
      "processingBalance": "0.00",
      "totalBalance": "0.00"
    }
  ]
}
🎉 Congratulations. You have successfully deposited cryptocurrency from your external blockchain wallet to your WSPN Mint Account.
Previous
Core Functionality
Next
Quickstart: Withdraw via Blockchain Wallet
Built with