You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when calling api "Create store on-chain wallet transaction."
Error: Error during POST to https://btcpay.mydomain.com/api/v1/stores/6hEWBQnuK3chzLpWm2yJ1ha8eDRA2Nm5kLrRMgPrizyu/payment-methods/OnChain/BTC/wallet/transactions. Got response (422): [{"path":"Destinations","message":"You are attempting to send more than is available"},{"path":"SelectedInputs","message":"There are no available utxos based on your request"}]
In my destination I have "subtractFromAmount": true
The amount is the total confirmed balance on the wallet
Post body would be like;
{
"destinations": [
{
"destination": "bc1qczmc5uuyvfrjd68cnfydlrraj0su6f2xr70s2g",
"amount": "0.00023266",
"subtractFromAmount": true
}
],
"feeRate": 3
}
How did you encounter this bug?
Testing the api with PHP, this is the only api call that throws an error for me.
I am trying to send the total confirmed balance, but have also tried smaller amounts with the same problem
Relevant log output
No response
What browser do you use?
chrome, but this is a php api issue
Additional information
No response
Are you sure this is a bug report?
I confirm this is a bug report
The text was updated successfully, but these errors were encountered:
@pavlenex I discussed with @warrenbdev on Telegram and said this should not happen, that said I tried to reproduce the problem on testnet but was not able to.
@warrenbdev are all inputs confirmed in your wallet balance? As you are onchain, your feerate is below the dust limit, so try to use a competitive feerate.
Thanks @ndeet . All inputs are confirmed yes. I have tried various fee rates from 1 to 50 and I get the same error. Could this be a problem on the mainnet only ?
What is your BTCPay version?
BTCPay Server v1.13.0+5b31d4de2
How did you deploy BTCPay Server?
I deployed on Lunanode
What happened?
Error when calling api "Create store on-chain wallet transaction."
Error: Error during POST to https://btcpay.mydomain.com/api/v1/stores/6hEWBQnuK3chzLpWm2yJ1ha8eDRA2Nm5kLrRMgPrizyu/payment-methods/OnChain/BTC/wallet/transactions. Got response (422): [{"path":"Destinations","message":"You are attempting to send more than is available"},{"path":"SelectedInputs","message":"There are no available utxos based on your request"}]
In my destination I have "subtractFromAmount": true
The amount is the total confirmed balance on the wallet
Post body would be like;
{
"destinations": [
{
"destination": "bc1qczmc5uuyvfrjd68cnfydlrraj0su6f2xr70s2g",
"amount": "0.00023266",
"subtractFromAmount": true
}
],
"feeRate": 3
}
How did you encounter this bug?
Testing the api with PHP, this is the only api call that throws an error for me.
I am trying to send the total confirmed balance, but have also tried smaller amounts with the same problem
Relevant log output
No response
What browser do you use?
chrome, but this is a php api issue
Additional information
No response
Are you sure this is a bug report?
The text was updated successfully, but these errors were encountered: