This is the official wowpay api
Demo: https://github.com/MyEcoria/wowswap/blob/main/modules/wallet.mjs
The base URL for all API requests is:
https://nanpay.pilou.cc
auth:
api key (https://pay.pilou.cc/apis)
sign
: private key (https://pay.pilou.cc/apis)
To manage the sign in the header, you need to sign the body with the sending date. Here's an example in Node.js:
const jsonData = {
currency: ticket,
time: Date.now()
};
const withdrawalRequestBody = JSON.stringify(jsonData);
const withdrawalRequestSign = crypto.createHmac('sha256', "private key").update(withdrawalRequestBody).digest('base64');
const headers = {
'Content-Type': 'application/json',
'auth': "api key",
'sign': withdrawalRequestSign
};
POST /wallet/deposit
Create a deposit address
currency
: The chosen crypto currency (xno, ban, xro, ana, xdg, wow)Returns a JSON object with the following properties:
status
: If everything went well, the status is "ok" otherwise "error”address
: The managed deposit address