GithubHelp home page GithubHelp logo

blocktrail-sdk-php's People

Contributors

afk11 avatar jiangjinyuan avatar lsdx avatar oacdesigns avatar rubensayshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blocktrail-sdk-php's Issues

$changeAddress not used in Wallet.php

` /**
* create, sign and send a transaction
*
* @param array $outputs [address => value, ] or [[address, value], ] or [['address' => address, 'value' => value], ] coins to send
* value should be INT
* @param string $changeAddress change address to use (autogenerated if NULL)
* @param bool $allowZeroConf
* @param bool $randomizeChangeIdx randomize the location of the change (for increased privacy / anonimity)
* @param null|int $forceFee set a fixed fee instead of automatically calculating the correct fee, not recommended!
* @return string the txid / transaction hash
* @throws \Exception
*/

public function pay(array $outputs, $changeAddress = null, $allowZeroConf = false, $randomizeChangeIdx = true, $forceFee = null) `

$changeAddress is not used when building the transaction so it is impossible to specify the change address.

create wallet and send btc has 1 error

when try to send btc or when try to creat wallet by api . get this error

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Negative integers not supported by Buffer::int. This could be an application error, or you should be using templates. Input was: -2147483648' in G:\wamp64\www\blocktrail\vendor\bitwasp\buffertools\src\Buffertools\Buffer.php on line 87
( ! ) InvalidArgumentException: Negative integers not supported by Buffer::int. This could be an application error, or you should be using templates. Input was: -2147483648 in G:\wamp64\www\blocktrail\vendor\bitwasp\buffertools\src\Buffertools\Buffer.php on line 87

when app call this function
getRedeemScriptByPath > buildKey
get error

i tink this erorr is from here
\src\Bitcoin\BIP32Key.php
on line 148. var_dump result for $path on line 148:
G:\wamp64\www\blocktrail\src\Bitcoin\BIP32Key.php:148:string '0' (length=1)
G:\wamp64\www\blocktrail\src\Bitcoin\BIP32Key.php:148:string '16' (length=2)
G:\wamp64\www\blocktrail\src\Bitcoin\BIP32Key.php:148:string '0/0/16' (length=6)
G:\wamp64\www\blocktrail\src\Bitcoin\BIP32Key.php:148:string '0/16' (length=4)
G:\wamp64\www\blocktrail\src\Bitcoin\BIP32Key.php:148:string '0'/0/4' (length=6)

High Fees

When I send 0.5BTC to an external wallet through the API, the fees are around 0.05BTC while set with FEE_STRATEGY_LOW_PRIORITY on the $wallet->pay() command. Is there any way to lower the fees?

PHP 7.2 Support

Are you going to make release with mdanter/ecc v0.5.0 which support php 7.2?

Update composer please

Warning I get when installing the blocktrail SDK:

"Package endroid/qrcode is abandoned, you should avoid using it. Use endroid/qr-code instead."

Error: Sorry, no new webhooks can be created at this time

Below is my implementation of how I am setting up my webhook:

setupWebhookForUser: (routeUrl, iReqId) => { return walletClient.setupWebhook( "https://routeUrl", iReqId, (err, response) => { if (err) { console.log('==Error setting up the webhook=='); console.log(err); return false; } console.log('==Webhook setup successfully==') return response; }); }

As I run this code I got an error logged and says "Sorry, no new webhooks can be created this time"
I am using the sdk from npm and it is testnet. I hope it is not the same with mainnet.
What is the fix please. @rubensayshi @afk11

Add bitcoin as a topic to this repository

Hello,

This repository is listed on the Awesome Bitcoin list, which is a collection of useful Bitcoin projects. However, it seems that the 'bitcoin' topic is missing from this repository's topics.

Adding the 'bitcoin' topic will help users discover your project more easily and recognize its relevance to the Bitcoin ecosystem. To add the topic, please follow these steps:

  1. Navigate to the main page of the repository.
  2. Click on the gear icon next to "About" on the right side of the page.
  3. In the "Topics" section, type 'bitcoin' and press Enter.
  4. Click "Save changes."

Thank you for your attention and for contributing to the Bitcoin community!

Please update API

Please update API to work with PHP 7.2 and current bitwasp libraries... Love to use the blocktrail API but its incompatible.

Composer does not mention that CURL is required.

While installing 3.0 from composer this morning, I've installed the PHP libraries as required listed in the readme, however under usage with laravel it was noted that I was missing php5-curl/php7.0-curl.
After adding the library via apt-get, my website resumed normal operation.

The package requirements for composer also does not mention that curl is needed.

Could it be listed that curl is also needed for future reference? I also don't know if anyone else has experienced it but I am rather certain due to my troubleshooting that missing curl was the cause.

Regards,
Andrew

Make Wallet & WalletInterface::coinSelection API consistent

In Wallet.php
public function coinSelection($outputs, $lockUTXO = true, $allowZeroConf = false, $feeStrategy = self::FEE_STRATEGY_OPTIMAL, $forceFee = null) {

in WalletInterface
public function coinSelection($outputs, $lockUTXO = true, $allowZeroConf = false, $forceFee = null);

looks like param missing?

Conflicts with Laravel 5.3

Hello,

I'm trying to use this package in my Laravel 5.3 app but it appears to have some conflicts as described below.

λ composer require blocktrail/blocktrail-sdk                                                                                    
Using version ^2.1 for blocktrail/blocktrail-sdk                                                                                
./composer.json has been updated                                                                                                
Loading composer repositories with package information                                                                          
Updating dependencies (including require-dev)                                                                                   
Your requirements could not be resolved to an installable set of packages.                                                      
                                                                                                                                
  Problem 1                                                                                                                     
    - blocktrail/blocktrail-sdk v2.1.0 requires mdanter/ecc v0.4.0 -> satisfiable by mdanter/ecc[v0.4.0].                       
    - Installation request for blocktrail/blocktrail-sdk ^2.1 -> satisfiable by blocktrail/blocktrail-sdk[v2.1.0].              
    - Conclusion: remove paragonie/random_compat v2.0.4                                                                         
    - Conclusion: don't install paragonie/random_compat v2.0.4                                                                  
    - mdanter/ecc v0.4.0 requires paragonie/random_compat 1.4.1|2.0.2 -> satisfiable by paragonie/random_compat[v1.4.1, v2.0.2].
    - Can only install one of: paragonie/random_compat[v1.4.1, v2.0.4].                                                         
    - Can only install one of: paragonie/random_compat[v2.0.2, v2.0.4].                                                         
    - Installation request for paragonie/random_compat (locked at v2.0.4) -> satisfiable by paragonie/random_compat[v2.0.4].    
                                                                                                                                
                                                                                                                                
Installation failed, reverting ./composer.json to its original content.                                                         

Failed to select full amount

I cant send full wallet balance and getting error:

A Server Error has occurred! Server Response: {"code":0,"msg":"Failed to select full amount"}

backup_info_example.php don't work in 3.0.5

After creating new wallet In $backupInfo['blocktrail_public_keys'] we really have array of arrays (not instances).

Argument 1 passed to Blocktrail\SDK\Bitcoin\BIP32Key::create() must be an instance of BitWasp\Bitcoin\Key\Deterministic\HierarchicalKey, array given, called in /var/www/bit.tbot.me/vendor/blocktrail/blocktrail-sdk/src/BackupGenerator.php on line 79

feature request: whitelist restriction error message with ip address

When whitelist is applied could be useful if we get a more details about the ip that do not match whitelist.

Currently, when a call is not in whitelist we get this error message:

blocktrail/blocktrail-sdk/src/Connection/RestClient.php:344 Blocktrail\SDK\Connection\RestClient::responseHandler
A Server Error has occurred! Server Response: {"code":0,"msg":"Unable to co-sign transction due to IP whitelist restrictions"} 

Would be even better if api included in message IP address that trigger the error, eg:

A Server Error has occurred! Server Response: {"code":0,"msg":"Unable to co-sign transaction due to IP whitelist restrictions ( 1.2.3.4 )"} 

I don't see any BCH support

Is this API doesn't support BCH flow??

When i create tBTC wallet it also appears in tBCH wallet??

Then why i am not able to see the wallet balance of tBCH???

Problem with getting new address getNewAddress()

Hello friends

$address = $wallet->getNewAddress();

Blocktrail\SDK\Connection\Exceptions\ObjectNotFound: The object you've tried to access does not exist. in /vendor/blocktrail/blocktrail-sdk/src/Connection/BaseRestClient.php:253

Thanks.

createNewWallet error : 'Byte string exceeds maximum size'

Hello,

I have a problem with the latest version of Blocktrail SDK.
I follow the API documentation examples to create a wallet programmatically like so:

$client = new BlocktrailSDK($myAPIKEY, $myAPISECRET, "BTC", true);
list($wallet, $primaryMnemonic, $backupMnemonic, $blocktrailPublicKeys) = $client->createNewWallet("mytestwallet", "securepasswordgoeshere");

I get the following PHP error related to BIP32:
Fatal error: Uncaught exception 'Exception' with message 'Byte string exceeds maximum size' in ....\vendor\bitwasp\buffertools\src\Buffertools\Buffer.php on line 38

I have PHP 5.6.25, Apache 2.4.23, and Windows 10 64bits, and all required PHP extensions enabled.

phpblocktrail

Failed to install inside Laravel 5.6 project

When try to install blocktrail sdk inside of Laravel 5.6 project I have that problem:

composer require blocktrail/blocktrail-sdk
Using version ^3.2 for blocktrail/blocktrail-sdk
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for bitwasp/bitcoin (locked at v0.0.35.0) -> satisfiable by bitwasp/bitcoin[v0.0.35.0].
    - blocktrail/blocktrail-sdk v3.2.0 requires bitwasp/bitcoin v0.0.34.1 -> satisfiable by bitwasp/bitcoin[v0.0.34.1].
    - blocktrail/blocktrail-sdk v3.2.1 requires bitwasp/bitcoin v0.0.34.1 -> satisfiable by bitwasp/bitcoin[v0.0.34.1].
    - blocktrail/blocktrail-sdk v3.2.2 requires bitwasp/bitcoin v0.0.34.1 -> satisfiable by bitwasp/bitcoin[v0.0.34.1].
    - Conclusion: don't install bitwasp/bitcoin v0.0.34.1
    - Installation request for blocktrail/blocktrail-sdk ^3.2 -> satisfiable by blocktrail/blocktrail-sdk[v3.2.0, v3.2.1, v3.2.2].


Installation failed, reverting ./composer.json to its original content.

Can't send bitcoin using pay api in node.js getting Invalid Address Error

I am using node. I am using exact mention code but I am not able to pay. I have tried with multiple addresses.
I have attached the snapshot of code. Please help me.
app.get("/pay/:address", function(req, res) { client.initWallet("ashokrayaltestnet", "12345678!@#$", function(err, wallet) { value = blocktrail.toSatoshi(1.1); wallet.pay({'1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T': value}, null, false, true, blocktrail.Wallet.FEE_STRATEGY_BASE_FEE, function(err, result) { if(err){ console.log(err); } res.send(JSON.stringify(result)); }); wallet.pay({'1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T': value}, null, false, true, blocktrail.Wallet.FEE_STRATEGY_LOW_PRIORITY, function(err, result) { if(err){ console.log(err); } res.send(JSON.stringify(result)); }); }); });

bitcoin pay error

Fees estimation

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?

Getting transaction details

Ehy there,
I'm trying to get transaction details with method ->transaction() but I get UnknownEndpointSpecificError. In the method the client sends 2 different requests to the server, the first one with "?verbose=3" and the second one without it. The first one works but the second one obtains an error 403 with empty body.
If I put usleep(100 * 1000) between the 2 requests everything works. It's clearly due to the server endpoint.

What is happening with the server APIs?

two factor

I am trying to setup an automatic trading robot with auto reload of funds. Is there anyway i can use the api to send payments from my wallet with 2fa enabled?

subtractfeefromamount

This would be really nice functionality in your API - please consider adding it like bitcoin core:

5 subtractfeefromamount (string, optional) A json array with addresses.
The fee will be equally deducted from the amount of each selected address.
Those recipients will receive less bitcoins than you enter in their corresponding amount field.
If no addresses are specified here, the sender pays the fee.
[
"address" (string) Subtract fee from this address
,...
]

Call to undefined function GuzzleHttp\Handler\curl_init()

Hii there,

I'm trying to use the blocktrail API, when I stumbled upon this error:

Notice: Use of undefined constant CURLOPT_CUSTOMREQUEST - assumed 'CURLOPT_CUSTOMREQUEST' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 196

Notice: Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 197

Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 198

Notice: Use of undefined constant CURLOPT_HEADER - assumed 'CURLOPT_HEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 199

Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 200

Notice: Use of undefined constant CURLOPT_HTTP_VERSION - assumed 'CURLOPT_HTTP_VERSION' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 209

Notice: Use of undefined constant CURL_HTTP_VERSION_1_1 - assumed 'CURL_HTTP_VERSION_1_1' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 209

Notice: Use of undefined constant CURLOPT_SSL_VERIFYHOST - assumed 'CURLOPT_SSL_VERIFYHOST' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 326

Notice: Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 327

Notice: Use of undefined constant CURLOPT_ENCODING - assumed 'CURLOPT_ENCODING' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 352

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 354

Notice: Use of undefined constant CURLOPT_FILE - assumed 'CURLOPT_FILE' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 378

Notice: Use of undefined constant CURLOPT_FILE - assumed 'CURLOPT_FILE' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 379

Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT_MS - assumed 'CURLOPT_CONNECTTIMEOUT_MS' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 398

Notice: Use of undefined constant CURLOPT_PROXY - assumed 'CURLOPT_PROXY' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 407

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 291

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 291

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 291

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 291

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 291

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 291

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 297

Notice: Use of undefined constant CURLOPT_HEADERFUNCTION - assumed 'CURLOPT_HEADERFUNCTION' in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 53

Fatal error: Call to undefined function GuzzleHttp\Handler\curl_init() in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 56

I am using this code:

<?php
  error_reporting(E_ALL);
  ini_set('display_errors', 1);

  use Blocktrail\SDK\BlocktrailSDK;

  require('config.inc.php');
  require 'vendor/autoload.php';


  $client = new BlocktrailSDK("MYSEXYKEY", "MYSEXYSECRET, "BTC", true /* testnet */,'v3');
  $address = $client->address('MYSEXYADDRESS');

Am I doing something wrong or?

Add an interface class for overview

May I suggest creating an Interface for the SDK class? It gives a quick overview of all API methods without have to read the entire Class.

class BlocktrailSDK implements BlocktrailSDKinterface { ... } 

Listing all wallets

Hello,

I am trying to create a self-solution to manage my assets easier. I have tinkered a bit with the PHP SDK today and I cannot seem to list my wallets. I created three wallets on one account through the API but now I cannot seem to figure out how to list them.

I suppose I need to query from the server an object and then through a repetitive structure I will output everything inside that object/array. The problem is I do not know how this query will look/how to form it.

Or better phrased, does the API support listing all my wallets?

Thank you

https://github.com/rgooding/Protobuf-PHP.git

[RuntimeException]
Failed to clone https://github.com/rgooding/Protobuf-PHP.git via https, ssh protocols, aborting.

You have a dependency
"bitwasp / bitcoin": "v0.0.34.1"
It uses the https://github.com/rgooding/Protobuf-PHP.git package which does not exist, fix it because it is not possible to install because of the error that appears, I pointed it out above

SSL certificate problem

I installed curl but showing error on my localhost.

Error is:
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in D:\ogss\trunk\blocktrail\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187

The curl says the peer to peer connection not done.

Please help me...

Thanks in advance.

$client->subscribeAddressTransactions Not working

I'm currently testing this SDK to see if it will fit for my next project but it seems that the subscribeAddressTransactions function is not working.

Every time I'm calling it I get this message The object you've tried to access does not exist. and I know for sure that the BTC Address and the Webhook Identifier have been created before the call and are valid.

Iteration count should be at least 512 !

When I want to getBalance I got this error :

Fatal error: Uncaught RuntimeException: Iteration count should be at least 512 in blocktrail\blocktrail-sdk\src\V3Crypt\KeyDerivation.php on line 26

How can I solve it ?

addressTransactions

$client->addressTransactions('foobar');

Fatal error: Uncaught exception 'Blocktrail\SDK\Connection\Exceptions\EndpointSpecificError' with message 'Resource Not Found'

https://github.com/rgooding/Protobuf-PHP.git

Этот пакет удален!!!! сделайте с этим что-то!!! вам еще в 2019 году об этом писали, вы вообще смотрите что люди пишут или вам насрать на ваш sdk!????

Replace mdanter/ecc with paragonie/ecc

The PHPECC project has been abandoned for years, despite numerous attempts to fix security issues in the code. Paragon Initiative Enterprises has opted to fork PHPECC in order to provide a more secure implementation of ECDH and ECDSA for PHP projects.

Please refer to the Release Notes for our fork, which contains the specifics about the security issues we fixed and how to ensure your code is safe.

Impossible to install Blocktrail SDK with Laravel 5.2

Hello,

I am trying to install your SDK to work with my fresh Laravel installation. Composer cannot add it as a dependency because of the "illuminate/cookie" package that requires "symfony/http-foundation": "2.8.|3.0.", whereas "99designs/http-signatures-php" wants "symfony/http-foundation": "~2.5", to be installed.

I saw your pending PR, but it does not affect symfony/http-foundation's version.

This is a major issue for me. What can I do?

Thank you!

Full output:

C:\wamp\bin\php\php5.5.12\php.exe C:\wamp\www\composer.phar require blocktrail/blocktrail-sdk:1.0.4 -n
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - blocktrail/blocktrail-sdk 1.0.4 requires 99designs/http-signatures-guzzlehttp 1.0.0 -> satisfiable by 99designs/http-signatures-guzzlehttp[1.0.0].
    - Installation request for blocktrail/blocktrail-sdk 1.0.4 -> satisfiable by blocktrail/blocktrail-sdk[1.0.4].
    - Conclusion: remove symfony/http-foundation v3.0.4
    - Conclusion: don't install symfony/http-foundation v3.0.4
    - 99designs/http-signatures-guzzlehttp 1.0.0 requires 99designs/http-signatures ~1.1 -> satisfiable by 99designs/http-signatures[v1.1.0, v1.1.1, v1.1.2].
    - 99designs/http-signatures v1.1.0 requires symfony/http-foundation ~2.5 -> satisfiable by symfony/http-foundation[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4, v2.8.5].
    - 99designs/http-signatures v1.1.1 requires symfony/http-foundation ~2.5 -> satisfiable by symfony/http-foundation[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4, v2.8.5].
    - 99designs/http-signatures v1.1.2 requires symfony/http-foundation ~2.5 -> satisfiable by symfony/http-foundation[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4, v2.8.5].
    - Can only install one of: symfony/http-foundation[v2.8.0, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.8.1, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.8.2, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.8.3, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.8.4, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.8.5, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.0, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.1, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.10, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.11, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.12, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.2, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.3, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.4, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.5, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.6, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.7, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.8, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.5.9, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.0, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.1, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.10, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.11, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.12, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.13, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.2, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.3, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.4, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.5, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.6, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.7, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.8, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.6.9, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.0, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.1, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.10, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.11, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.12, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.2, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.3, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.4, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.5, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.6, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.7, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.8, v3.0.4].
    - Can only install one of: symfony/http-foundation[v2.7.9, v3.0.4].
    - Installation request for symfony/http-foundation (locked at v3.0.4) -> satisfiable by symfony/http-foundation[v3.0.4].


Installation failed, reverting ./composer.json to its original content.

Get address balance no longer working on SDK V1

Hi,

I was using this function well last year, but now i receive the message as INVALID CREDENTIAL:

use \Blocktrail\SDK\Connection\Exceptions\InvalidCredentials;

try {
    $client->address('1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T');
} catch (\Exception $e) {
    if ($e instanceof InvalidCredentials) {
        var_dump((string)$e);
    }
}
Notice than generating new address work well !

Estimate optimal fee

Can we get a function to get an estimate of the optimal fee? I would like to see how much the fee would cost to send X satotshi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.