jestesmining/chia-client-php

This package is abandoned and no longer maintained. No replacement package was suggested.

Provides support for interacting with chia nodes via RPC interface

dev-master / 0.1.x-dev 2021-05-23 23:56 UTC

This package is auto-updated.

Last update: 2023-11-15 04:56:11 UTC


README

This library allows you to communicate with a Chia RPC server.

Installation

composer require jestesmining/chia-client-php:0.1.x-dev

Usage

use JEstesMining\Component\Chia;

$chia = new Chia\FullNode('https://127.0.0.1:8555', [
    'local_cert' => '/path/to/.chia/mainnet/config/ssl/full_node/private_full_node.crt',
    'local_pk'   => '/path/to/.chia/mainnet/config/ssl/full_node/private_full_node.key',
]);

// @var array $state
$state = $chia->getBlockchainState();