Skip to main content
POST
https://oppiwallet.com/
/
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",
    "orderId": "order_12345"
  }'
{
  "message": "Your withdrawal request has been sent successfully.",
  "transactionId": "0866f8-4a53-4579-9274-351ec868a627"
}

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.
orderId
string
required
Include the orderId in your request for reference.
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",
    "orderId": "order_12345"
  }'

Response

Returns a success message upon successful request.
message
string
required
Success message for the withdrawal request.
transactionId
string
required
Unique identifier for the transaction.
{
  "message": "Your withdrawal request has been sent successfully.",
  "transactionId": "0866f8-4a53-4579-9274-351ec868a627"
}