We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hii i am using this method to send BTC $wallet->pay(array($address => $value), null, false, true);
i want to get the transaction fees estimate before sending the transaction. is there any method available to do this?
The text was updated successfully, but these errors were encountered:
did you solve it?
Sorry, something went wrong.
My solution:
$feeStrategy = \Blocktrail\SDK\Wallet::FEE_STRATEGY_LOW_PRIORITY; // your fee type
$address; // your address $satoshi; // your amount in satoshi
$fee = $wallet->coinSelection( \Blocktrail\SDK\Wallet::normalizeOutputsStruct([$address => $satoshi]), false, false, $feeStrategy )['fee'];
No branches or pull requests
Hii
i am using this method to send BTC
$wallet->pay(array($address => $value), null, false, true);
i want to get the transaction fees estimate before sending the transaction.
is there any method available to do this?
The text was updated successfully, but these errors were encountered: