POST
/
v1
/
autoWithdraw
curl --request POST \
  --url https://doc-api.oppiwallet.com/api/v1/autoWithdraw \
  --header 'signatureToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
  --header 'Content-Type: application/json' \
  --data '{
    "currency": "6698aec7f188ae24c673da1c",
    "amount": "0.01",
    "address": "0xb6b5E02EBf4d20......3AfAbA034f2F8D8D07"
  }'
{
  "message": "Your withdraw request has been processed successfully!"
}

Instructions

Source Code

  • Download script from here

Required Stuff

  • Linux Server
  • Node JS (v18.19.1 or later)

Setup

  • Open config.json file and replace mnemonic, apiKey, encKey.
  • Execute pair.js file using: node pair.js. It will install required packages.
  • Next you need to start crypto.ts on your server.

Authentication

signatureToken
string
required

A JWT token required for API authentication. Generate JWT token as explained in section Generate JWT Token using empty string.

Headers

Content-Type
string
required

Must be set to application/json.

Request Body

currency
string
required

Assets Currency id.

amount
string
required

Provide amount for transaction.

address
string
required

The external address where funds will be sent.

curl --request POST \
  --url https://doc-api.oppiwallet.com/api/v1/autoWithdraw \
  --header 'signatureToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
  --header 'Content-Type: application/json' \
  --data '{
    "currency": "6698aec7f188ae24c673da1c",
    "amount": "0.01",
    "address": "0xb6b5E02EBf4d20......3AfAbA034f2F8D8D07"
  }'

Response

Returns a success message upon successful request.

message
string
required

Success message for the withdrawal request.

{
  "message": "Your withdraw request has been processed successfully!"
}