PHPackages                             brooksyang/chia-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. [API Development](/categories/api)
4. /
5. brooksyang/chia-api

ActiveLibrary[API Development](/categories/api)

brooksyang/chia-api
===================

A PHP API for interacting with the Chia Network (XCH)

v1.0.7(5y ago)7893[2 PRs](https://github.com/BrooksYang/chia-api/pulls)MITPHPPHP ^7.0

Since Jun 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/BrooksYang/chia-api)[ Packagist](https://packagist.org/packages/brooksyang/chia-api)[ Docs](https://github.com/BrooksYang/chia-api)[ RSS](/packages/brooksyang-chia-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Chia API
========

[](#chia-api)

A PHP API for interacting with the Chia Network

Chia blockchain RPC
===================

[](#chia-blockchain-rpc)

Install
-------

[](#install)

```
composer require brooksyang/chia-api
```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0

Usage
-----

[](#usage)

```
use BrooksYang\ChiaApi\Chia;
use BrooksYang\ChiaApi\Provider\HttpProvider;
use BrooksYang\ChiaApi\Exception\ChiaException;

$cert = '/path/to/crt';
$sslKey = '/path/to/ssl_key';
$fullNode = new HttpProvider('https://localhost:8555', $cert, $sslKey);
$walletServer = new HttpProvider('https://localhost:9256', $cert, $sslKey);

try {
    $chia = new Chia($fullNode, $walletServer);
} catch (ChiaException $e) {
    exit($e->getMessage());
}

// Get next address
chia->getNextAddress();

// Get wallet balance
$chia->getWalletBalance();

// Send transaction
$chia->sendTransaction('xch1w0k7fwzrdkt8xqth45zln0d9anvw7gs26lkgv3yhngrdct7hkpmqdpyhmp', 1);

// Get coin record by puzzle hash
$chia->getCoinRecordsByPuzzleHash('0x73ede4b8436d96730177ad05f9bda5ecd8ef220ad7ec8644979a06dc2fd7b076');

// Get coin record by adress（Automatically convert xch address to puzzle hash）
$chia->getCoinRecordsByAddress('xch1w0k7fwzrdkt8xqth45zln0d9anvw7gs26lkgv3yhngrdct7hkpmqdpyhmp');

// Get coin info
$parentCoinInfo = '0x2d9dadc33ae71e0452f96c9544d2040275c9b37025c42764b0017a63cc8a2af6';
$puzzleHash = '0x73ede4b8436d96730177ad05f9bda5ecd8ef220ad7ec8644979a06dc2fd7b076';
$amount = '8000000000'; // 0.008 xch
$chia->getCoinInfo($parentCoinInfo, $puzzleHash, $amount);

// response
0xb9f219f539783d3db37d04b164e2fcd2019419ce97f0d44da20754ec9b13a09c
```

Donations
---------

[](#donations)

- TRX: `TB8gbB3erNn96poiMumkzX7my4Em9Lx9oG`
- XCH: `xch1w0k7fwzrdkt8xqth45zln0d9anvw7gs26lkgv3yhngrdct7hkpmqdpyhmp`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

1850d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ee0e5f72e548ff169a7eca2747b8990e16d43b94d33d2b08af7029049da240c?d=identicon)[BrooksYang](/maintainers/BrooksYang)

---

Top Contributors

[![brooksyang](https://avatars.githubusercontent.com/u/20674504?v=4)](https://github.com/brooksyang "brooksyang (14 commits)")

---

Tags

brooksyangchia-phpchia-apichia-libchia-rest-api

### Embed Badge

![Health badge](/badges/brooksyang-chia-api/health.svg)

```
[![Health](https://phpackages.com/badges/brooksyang-chia-api/health.svg)](https://phpackages.com/packages/brooksyang-chia-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M971](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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