Package Data | |
---|---|
Maintainer Username: | denpamusic |
Maintainer Contact: | denpa@denpa.pro (Denis Paavilainen) |
Package Create Date: | 2017-02-01 |
Package Last Update: | 2022-05-24 |
Home Page: | https://laravel-bitcoinrpc.denpa.pro |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:18:11 |
Package Statistics | |
---|---|
Total Downloads: | 45,229 |
Monthly Downloads: | 929 |
Daily Downloads: | 72 |
Total Stars: | 90 |
Total Watchers: | 8 |
Total Forks: | 39 |
Total Open Issues: | 5 |
This package allows you to make JSON-RPC calls to Bitcoin Core JSON-RPC server from your laravel project. It's based on denpa/php-bitcoinrpc project - fully unit-tested Bitcoin JSON-RPC client powered by GuzzleHttp.
composer require denpa/laravel-bitcoinrpc "^1.2"
./config/app.php
...
'providers' => [
...
Denpa\Bitcoin\Providers\ServiceProvider::class,
];
...
'aliases' => [
...
'Bitcoind' => Denpa\Bitcoin\Facades\Bitcoind::class,
];
php artisan vendor:publish --provider="Denpa\Bitcoin\Providers\ServiceProvider"
Visit Installation for detailed installation guide.
This package provides simple and intuitive API to make RPC calls to Bitcoin Core (and some altcoins)
$hash = '000000000001caba23d5a17d5941f0c451c4ac221cbaa6c60f27502f53f87f68';
$block = bitcoind()->getBlock($hash);
dump($block->get());
Check Usage for more information and examples.
Documentation is available here.
For PHP 5.6 and 7.0 use laravel-bitcoinrpc v1.2.8.
This product is distributed under the MIT license.
If you like this project, please consider donating: BTC: 3L6dqSBNgdpZan78KJtzoXEk9DN3sgEQJu Bech32: bc1qyj8v6l70c4mjgq7hujywlg6le09kx09nq8d350
❤Thanks for your support!❤