Author

Topic: Blocktrail/btc.com SDK Fees estimation (Read 129 times)

legendary
Activity: 1492
Merit: 1021
August 17, 2018, 06:00:19 AM
#4
We are updating our API docs they will be back online shortly.
newbie
Activity: 3
Merit: 0
July 30, 2018, 05:26:52 AM
#3
THANKS A LOT!!!!!!!!!!!!
legendary
Activity: 2058
Merit: 1030
I'm looking for free spin.
July 29, 2018, 11:38:55 AM
#2
I found a solution suggested AlexKirsanoff from here https://github.com/blocktrail/blocktrail-sdk-php/issues/101

Test the code if it can still result in an error.

If still persist better to post the issue on GitHub here https://github.com/blocktrail/blocktrail-sdk-php/issues
newbie
Activity: 3
Merit: 0
July 29, 2018, 01:53:41 AM
#1
First of all hi and thanks for your support and your time.

I want to calculate the fees of a blocktrail transaction with blocktrail SDK, before making the transaction, in order to let the recipient pay fees.

Here is what I tried:

Code:
$FEES = $wallet->coinSelection(\Blocktrail\SDK\Wallet::normalizeOutputsStruct(['66f4dec6ab29cd056ce1814c6fdfee05e1524b36' =>'100000']),false,false,\Blocktrail\SDK\Wallet::FEE_STRATEGY_LOW_PRIORITY['fee'];
echo "$FEES";

But this don't work, error says this:
Code:
Fatal error: Uncaught Blocktrail\SDK\Exceptions\BlocktrailSDKException: Address not recognized 
how can I fix it?Any other ideas to make this "action"?

I have also another question, how should I process payments on my site and why? Is more correct to process a payment when user request it, so with only 1 input or to process all payments togheter with a cronjob?

Thanks for read, hope that you'll have a nice day Smiley
Jump to: