sonofliberty / bitcoincom-rest
BCH RPC over HTTP
0.1.5
2021-03-05 06:45 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.5
- jms/serializer: ^3.4
- php-http/message: ^1.8
Requires (Dev)
- symfony/var-dumper: ^5.0
This package is auto-updated.
Last update: 2024-11-05 14:20:11 UTC
README
Easy to use PHP library for interacting with rest.bitcoin.com.
Installation
composer require sonofliberty/bitcoincom-rest
Get started
use SonOfLiberty\BitcoinComRest\Client; $client = new Client(); // get address details $addressDetails = $client->address()->details('bitcoincash:qzs02v05l7qs5s24srqju498qu55dwuj0cx5ehjm2c'); // get slp token balances $balances = $client->slp()->balancesForAddress('simpleledger:qz9tzs6d5097ejpg279rg0rnlhz546q4fsnck9wh5m'); // check 'examples' folder for more example code
Donate
- BCH: bitcoincash:qpaz7xtdu5wh3wlcq3n79ze87ng5d4vkvqmkl9r206
- SLP: simpleledger:qqapjzaaex66ve4xj7kwykmckv2t73jjfqhzwy53zq