blocktrail / blocktrail-sdk-php

BlockTrail's Developer Friendly PHP SDK for the BlockTrail API
MIT License
44 stars 49 forks source link

Sending BTC: GenericServerError A Server Error has occurred! Server Response: {"code":500,"msg":"66: mempool min fee not met"} #97

Open InspiredPrynce opened 6 years ago

InspiredPrynce commented 6 years ago

When I try to send BTC, i get this error...

 (1/1) GenericServerError

A Server Error has occurred!
Server Response: {"code":500,"msg":"66: mempool min fee not met"}

Please what is the cause, someone should help me.....

afk11 commented 6 years ago

Sorry the error comes from bitcoind and isn't the most descriptive. What line of code are you using to send funds from your wallet? The mempool is crazy lately, so if you're using force fee or something it's possible that no longer meets the min relay fee.

InspiredPrynce commented 6 years ago

Thanks @afk11 for responding to my issue. Am so happy. Thanks

Am using this code to send the transaction

$wallet->pay(array($address => $amount), null, false, true, Wallet::FEE_STRATEGY_BASE_FEE);

Thanks! I have 0.00032890 BTC and I want to send it to another wallet...

InspiredPrynce commented 6 years ago

Fixed it though.... The Wallet::BASE_FEE constant, I increased it to 150000 satoshis and it started working...