Bitcoin Forum
June 04, 2024, 11:33:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blocktrail/btc.com SDK Fees estimation  (Read 124 times)
new-bie 75 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
July 29, 2018, 06: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
socks435
Legendary
*
Offline Offline

Activity: 2016
Merit: 1030

Privacy is always important


View Profile
July 29, 2018, 04:38:55 PM
 #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

Solving blocks can't be solved without my rigs.
new-bie 75 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
July 30, 2018, 10:26:52 AM
 #3

THANKS A LOT!!!!!!!!!!!!
neutraLTC
Legendary
*
Offline Offline

Activity: 1492
Merit: 1021



View Profile WWW
August 17, 2018, 11:00:19 AM
 #4

We are updating our API docs they will be back online shortly.

DEMAND STRATUMV2 MINING POOL: DMND.WORK
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!