PHPackages                             indieblock/reddcoin-php-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. indieblock/reddcoin-php-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

indieblock/reddcoin-php-api
===========================

ReddCoin JSON-RPC client.

00PHP

Since Jan 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/reddcoin-project/reddcoin-php-api)[ Packagist](https://packagist.org/packages/indieblock/reddcoin-php-api)[ RSS](/packages/indieblock-reddcoin-php-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Reddcoin JSON-RPC PHP Client
============================

[](#reddcoin-json-rpc-php-client)

- PHP 7.1 or higher

Usage
-----

[](#usage)

Create a ReddCoin client object with a url parameter:

```
    use IndieBlockReddcoin\Client as ReddcoinClient;

    $redcoind = new ReddcoinClient('http://rpcuser:rpcpassword@localhost:8332/');

```

You can also use an array to define the `reddcoind` settings:

```
    use IndieBlockReddcoin\Client as ReddcoinClient;

    $reddcoind = new ReddcoinClient([
        'scheme'        => 'http',                 // optional, default http
        'host'          => 'localhost',            // optional, default localhost
        'port'          => 8332,                   // optional, default 8332
        'user'          => 'rpcuser',              // required
        'password'      => 'rpcpassword',          // required
        'ca'            => '/etc/ssl/ca-cert.pem'  // optional, for use with https scheme
        'preserve_case' => false,                  // optional, send method names as defined instead of lowercasing them
    ]);

```

You can call methods from the `reddcoind` API:

```
    /**
    * Get block info.
    */
    $block = $reddcoind->getBlock('000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f');

    $block('hash')->get();     // 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
    $block['height'];          // 0 (array access)
    $block->get('tx.0');       // 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
    $block->count('tx');       // 1
    $block->has('version');    // key must exist and CAN NOT be null
    $block->exists('version'); // key must exist and CAN be null
    $block->contains(0);       // check if response contains value
    $block->values();          // array of values
    $block->keys();            // array of keys
    $block->random(1, 'tx');   // random block txid
    $block('tx')->random(2);   // two random block txid's
    $block('tx')->first();     // txid of first transaction
    $block('tx')->last();      // txid of last transaction

    /**
    * Send transaction.
    */
    $result = $reddcoind->sendToAddress('mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6', 0.1);
    $txid = $result->get();

    /**
    * Get transaction amount.
    */
    $result = $reddcoind->listSinceBlock();
    $reddcoin = $result->sum('transactions.*.amount');
    $reddoshi = \IndieBlockReddcoin\to_reddoshi($reddcoin);

```

Asynchronous can also be made:

```
    $reddcoind->getBlockAsync(
        '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f',
        function ($response) {
            // success
        },
        function ($exception) {
            // error
        }
    );

```

Multi-wallet support
--------------------

[](#multi-wallet-support)

```
    /**
    * Get the balance of 2 seperate wallets.
    */
    $balance1 = $reddcoind->wallet('wallet1.dat')->getbalance();
    $balance2 = $reddcoind->wallet('wallet2.dat')->getbalance();

    echo $balance1->get();
    echo $balance2->get();

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/03fc9cd51722ad07464c154a6a0f04d469cc9a90205b9f68cac16d3ddf999604?d=identicon)[IndieBlock](/maintainers/IndieBlock)

---

Top Contributors

[![MatWaller](https://avatars.githubusercontent.com/u/8047888?v=4)](https://github.com/MatWaller "MatWaller (1 commits)")

---

Tags

clientcrypto-librarycryptocurrencyguzzlejsonrpcphprddreddcoinreddcoind

### Embed Badge

![Health badge](/badges/indieblock-reddcoin-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/indieblock-reddcoin-php-api/health.svg)](https://phpackages.com/packages/indieblock-reddcoin-php-api)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
