Simple package for interacting with commons crypto wallet explorer
PHP 7.1+ and Composer are required.
To get the latest version simply run the code below in your project.
composer require kriosmane/wallet-explorer
Once is installed, you need to register the service provider: open up config/app.php
and add the following to the providers
key.
'providers' => [
...
KriosMane\WalletExplorer\Providers\WalletExplorerServiceProvider::class,
...
]
Also, register the facade like so:
'aliases' => [
...
'WalletExplorer' => KriosMane\WalletExplorer\Facades\WalletExplorer::class,
...
]
You can publish the configuration file using this command:
php artisan vendor:publish --provider="KriosMane\WalletExplorer\Providers\WalletExplorerServiceProvider"
A configuration-file named walletexpolorer.php
with default settings will be placed in your config
directory
Add the following line to your controller
use \WalletExplorer;
$balance = WalletExplorer::getBalance('BTC', '3JZq4atUahhuA9rLhXLMhhTo133J9rF97j');
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
As a programmer i need coffee to be productive, don't let my cup get emtpy
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!
Thanks! Krios Mane
Please see License File for more information.