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"
}
This API is used to make automatic withdraw to external address. Make sure you follow below instructions otherwise it will not work.
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"
}
node pair.js. It will install required packages.application/json.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"
}