sonofliberty / bitcoincom-rest
BCH RPC over HTTP
Installs: 199
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/sonofliberty/bitcoincom-rest
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: 2025-10-05 16:34:56 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