Bitcoin
Estimate Bitcoin Withdrawal
POST
https://api.bitvora.com/v1/bitcoin/withdraw/estimate
The Estimate Bitcoin Withdrawal endpoint is useful to determine the fees for the transaction, the success probability and to validate the destination. Acceptable destination types: lightning address, on-chain bitcoin address, lightning invoice, lnurl.
Request
const axios = require('axios');
let data = {
"amount": 6.99,
"currency": "usd",
"destination": "[email protected]"
};
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.bitvora.com/v1/bitcoin/withdraw/estimate',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});