{"id":15029306,"url":"https://github.com/owenvoke/btgexp-api","last_synced_at":"2026-03-14T18:21:30.198Z","repository":{"id":57046096,"uuid":"112339700","full_name":"owenvoke/btgexp-api","owner":"owenvoke","description":"An API wrapper for BTGexp","archived":false,"fork":false,"pushed_at":"2017-12-06T09:37:25.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T21:48:46.974Z","etag":null,"topics":["bitcoin-gold","btg","composer","package","php","php71"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/pxgamer/btgexp-api","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owenvoke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-28T13:35:27.000Z","updated_at":"2018-01-16T21:42:21.000Z","dependencies_parsed_at":"2022-08-24T05:00:19.721Z","dependency_job_id":null,"html_url":"https://github.com/owenvoke/btgexp-api","commit_stats":null,"previous_names":["pxgamer/btgexp-api"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fbtgexp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fbtgexp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fbtgexp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fbtgexp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owenvoke","download_url":"https://codeload.github.com/owenvoke/btgexp-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243338685,"owners_count":20275551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin-gold","btg","composer","package","php","php71"],"created_at":"2024-09-24T20:10:16.116Z","updated_at":"2025-12-24T18:16:53.299Z","avatar_url":"https://github.com/owenvoke.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# btgexp-api\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Style CI][ico-styleci]][link-styleci]\n[![Code Coverage][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nAn API wrapper for BTGexp.com\n\n## Structure\n\n```\nsrc/\ntests/\nvendor/\n```\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require pxgamer/btgexp-api\n```\n\n## Usage\n\n### Basic methods\n\nInitialise the `Basic` class.\n\n```php\n$basic = new pxgamer\\BTGExp\\Basic();\n```\n\nRetrieve the current difficulty as a `double`.\n\n```php\n$basic-\u003egetDifficulty();\n```\n\nRetrieve the current connection count as an `integer`.\n\n```php\n$basic-\u003egetConnectionCount();\n```\n\nRetrieve the current block count as an `integer`.\n\n```php\n$basic-\u003egetBlockCount();\n```\n\nRetrieve the block hash for a specified index.\n\n```php\n$basic-\u003egetBlockHashByIndex(int $index);\n```\n\nRetrieve a `Block` instance by hash.\n\n```php\n$basic-\u003egetBlockByHash(string $hash);\n```\n\nRetrieve a transaction as a `string` or a `Transaction` instance.\n\n```php\n// As a Transaction instance (default).\n$basic-\u003egetTransactionById(string $hash, true);\n// As an encrypted string.\n$basic-\u003egetTransactionById(string $hash, false);\n```\n\nRetrieve the current network hash rate (hash/s) as a `double`.\n\n```php\n$basic-\u003egetNetworkHashRate();\n```\n\n### Extended methods\n\nInitialise the `Extended` class.\n\n```php\n$extended = new pxgamer\\BTGExp\\Extended();\n```\n\nRetrieve the current money supply as a `double`.\n\n```php\n$extended-\u003egetMoneySupply();\n```\n\nRetrieve the current network details as a `Network` instance.\n\n```php\n$extended-\u003egetNetwork();\n```\n\nRetrieve information for an address as an `Address` instance.\n\n```php\n$extended-\u003egetAddress(string $address);\n```\n\nRetrieve the balance for an address as a `double`.\n\n```php\n$extended-\u003egetBalance(string $address);\n```\n\nRetrieve the latest transactions as an array.\n\n```php\n$extended-\u003egetLastTransactions();\n$extended-\u003egetLastTransactions(int $count);\n$extended-\u003egetLastTransactions(int $count, int $min);\n```\n\nRetrieve the last 7 blocks as an array.\n\n```php\n$extended-\u003egetLastBlocks();\n```\n\nRetrieve a `Block` instance specified by it's height.\n\n```php\n$extended-\u003egetBlockByHeight(int $height);\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [pxgamer][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/pxgamer/btgexp-api.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/pxgamer/btgexp-api/master.svg?style=flat-square\n[ico-styleci]: https://styleci.io/repos/112339700/shield\n[ico-code-quality]: https://img.shields.io/codecov/c/github/pxgamer/btgexp-api.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/pxgamer/btgexp-api.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/pxgamer/btgexp-api\n[link-travis]: https://travis-ci.org/pxgamer/btgexp-api\n[link-styleci]: https://styleci.io/repos/112339700\n[link-code-quality]: https://codecov.io/gh/pxgamer/btgexp-api\n[link-downloads]: https://packagist.org/packages/pxgamer/btgexp-api\n[link-author]: https://github.com/pxgamer\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Fbtgexp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowenvoke%2Fbtgexp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Fbtgexp-api/lists"}