PHPackages                             pxgamer/btgexp-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. pxgamer/btgexp-api

ActiveLibrary[API Development](/categories/api)

pxgamer/btgexp-api
==================

An API wrapper for BTGexp.com

v1.0.1(8y ago)05MITPHPPHP ^7.1

Since Nov 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/owenvoke/btgexp-api)[ Packagist](https://packagist.org/packages/pxgamer/btgexp-api)[ RSS](/packages/pxgamer-btgexp-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

btgexp-api
==========

[](#btgexp-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1907cfb92d2e0eae48ecf41152f295bdfb1b44be1bfbe526e401ff010dabae3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707867616d65722f6274676578702d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/btgexp-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/dc171620c61b77f37e51513e2892c65ab6662570923f28c51e81071f84c72e81/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f707867616d65722f6274676578702d6170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pxgamer/btgexp-api)[![Style CI](https://camo.githubusercontent.com/88396efb56dfa4b6f72c4bca3b039f11ad7f3754863f75cf41619590ea243ff6/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131323333393730302f736869656c64)](https://styleci.io/repos/112339700)[![Code Coverage](https://camo.githubusercontent.com/75d8974f535437ccc46fc974f27f68c08fca08af346d8345473cf92ee7b07987/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f707867616d65722f6274676578702d6170692e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/pxgamer/btgexp-api)[![Total Downloads](https://camo.githubusercontent.com/1569db474a0c9be9d88396148846b3307afa8630724032a50e976fe6bfaf03ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707867616d65722f6274676578702d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/btgexp-api)

An API wrapper for BTGexp.com

Structure
---------

[](#structure)

```
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require pxgamer/btgexp-api
```

Usage
-----

[](#usage)

### Basic methods

[](#basic-methods)

Initialise the `Basic` class.

```
$basic = new pxgamer\BTGExp\Basic();
```

Retrieve the current difficulty as a `double`.

```
$basic->getDifficulty();
```

Retrieve the current connection count as an `integer`.

```
$basic->getConnectionCount();
```

Retrieve the current block count as an `integer`.

```
$basic->getBlockCount();
```

Retrieve the block hash for a specified index.

```
$basic->getBlockHashByIndex(int $index);
```

Retrieve a `Block` instance by hash.

```
$basic->getBlockByHash(string $hash);
```

Retrieve a transaction as a `string` or a `Transaction` instance.

```
// As a Transaction instance (default).
$basic->getTransactionById(string $hash, true);
// As an encrypted string.
$basic->getTransactionById(string $hash, false);
```

Retrieve the current network hash rate (hash/s) as a `double`.

```
$basic->getNetworkHashRate();
```

### Extended methods

[](#extended-methods)

Initialise the `Extended` class.

```
$extended = new pxgamer\BTGExp\Extended();
```

Retrieve the current money supply as a `double`.

```
$extended->getMoneySupply();
```

Retrieve the current network details as a `Network` instance.

```
$extended->getNetwork();
```

Retrieve information for an address as an `Address` instance.

```
$extended->getAddress(string $address);
```

Retrieve the balance for an address as a `double`.

```
$extended->getBalance(string $address);
```

Retrieve the latest transactions as an array.

```
$extended->getLastTransactions();
$extended->getLastTransactions(int $count);
$extended->getLastTransactions(int $count, int $min);
```

Retrieve the last 7 blocks as an array.

```
$extended->getLastBlocks();
```

Retrieve a `Block` instance specified by it's height.

```
$extended->getBlockByHeight(int $height);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [pxgamer](https://github.com/pxgamer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~6 days

Total

2

Last Release

3077d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (23 commits)")

---

Tags

bitcoin-goldbtgcomposerpackagephpphp71

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pxgamer-btgexp-api/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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