PHPackages                             waygood/blockchaindata - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. waygood/blockchaindata

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

waygood/blockchaindata
======================

This is a package designed to integrate with laravel 5.0+

1(7y ago)0271MITPHPPHP ^5.4.0|^7.0

Since Nov 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/waygood/Laravel-blockchaindata-api)[ Packagist](https://packagist.org/packages/waygood/blockchaindata)[ RSS](/packages/waygood-blockchaindata/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel-blockchain-data-api
===========================

[](#laravel-blockchain-data-api)

This is a laravel package for interacting with blockchain data api

laravel-blockchain
==================

[](#laravel-blockchain)

> A Laravel 5 Package for working with blockchain data api

Installation
------------

[](#installation)

[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

To get the latest version of blockchain data api, simply run the code below in your project.

```
"composer require waygood/blockchaindata"

```

Once Laravel Blockchain Data is installed, You need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `Waygood\BlockchainData\BlockchainDataServiceProvider::class,`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'BlockchainData' => Waygood\BlockchainData\Facades\BlockchainData::class,
    ...
]
```

USING /WAYGOOD/BLOCKCHAINDATA PACKAGE
-------------------------------------

[](#using-waygoodblockchaindata-package)

```
Add the following line to your controller

use BlockchainData;

```

1. GET ADDRESS CONTENTS
-----------------------

[](#1-get-address-contents)

$bitcoin\_address contains multiple addresses (can be base58 or xpub) divided by | Optional limit parameter to show n transactions e.g. &amp;n=50 (Default: 50, Max: 100) Optional offset parameter to skip the first n transactions e.g. &amp;offset=100 (Page 3 for limit 50)

```
$blocks = BlockchainData::getAddress($bitcoin_address[, $limit[, $offset]]);
```

2. UNSPENT OUTPUTS
------------------

[](#2-unspent-outputs)

$bitcoin\_address contains multiple addresses (can be base58 or xpub) divided by | Optional limit parameter to show n transactions e.g. &amp;n=50 (Default: 50, Max: 100) Optional offset parameter to skip the first n transactions e.g. &amp;offset=100 (Page 3 for limit 50)

```
$blocks = BlockchainData::unspentAddress($bitcoin_address[, $limit[, $offset]]);
```

3. BALANCE
----------

[](#3-balance)

$bitcoin\_address contains multiple addresses (can be base58 or xpub) divided by |

```
$blocks = BlockchainData::balanceAddress($bitcoin_address[, $limit[, $offset]]);
```

4. GET SINGLE BLOCK
-------------------

[](#4-get-single-block)

optional $format JSON by default, alternatively HEX

```
$block = BlockchainData::getBlock($block_hash[, $format]);
```

5. GET SINGLE TRANSACTION
-------------------------

[](#5-get-single-transaction)

optional $format JSON by default, alternatively HEX

```
$tx = BlockchainData::getTransaction($tx_hash[, $format]);
```

6. GET SINGLE SUB TRANSACTION
-----------------------------

[](#6-get-single-sub-transaction)

Uses the tx\_index and n values from an output (or prev\_out) optional $format JSON by default, alternatively HEX

```
$tx = BlockchainData::getSubTransaction($tx_index, $n[, $format]);
```

7. GET STATISTICS CHART
-----------------------

[](#7-get-statistics-chart)

```
$chart = BlockchainData::getChart($chart_type);
```

8. BLOCKS AT HEIGHT
-------------------

[](#8-blocks-at-height)

```
$blocks = BlockchainData::blocksAtHeight($height);
```

9. LATEST BLOCK
---------------

[](#9-latest-block)

```
$blocks = BlockchainData::latestBlock();
```

10. UNCONFIRMED TRANSACTIONS
----------------------------

[](#10-unconfirmed-transactions)

```
$blocks = BlockchainData::unconfirmedTransactions();
```

11. DAILY BLOCKS
----------------

[](#11-daily-blocks)

```
$blocks = BlockchainData::dailyBlocks($timestamp);
```

12. DAILY BLOCKS
----------------

[](#12-daily-blocks)

```
$blocks = BlockchainData::poolBlocks($pool_name);
```

Credit
------

[](#credit)

Readme document was inpsired and tuned from one of @Unicodedeveloper. Prosper Otemuyiwa.

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

[](#contributing)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

How can I thank you?
--------------------

[](#how-can-i-thank-you)

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Thanks! Matthew Waygood

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

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2734d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/604045c68f256226d015d4f5ded49be8a4775092abd419573aa093f2279ee822?d=identicon)[waygood](/maintainers/waygood)

---

Top Contributors

[![matthewwaygood](https://avatars.githubusercontent.com/u/43849086?v=4)](https://github.com/matthewwaygood "matthewwaygood (3 commits)")

---

Tags

phplaraveldatalaravel 5bitcoincryptocurrencyblockchainopen-source

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waygood-blockchaindata/health.svg)

```
[![Health](https://phpackages.com/badges/waygood-blockchaindata/health.svg)](https://phpackages.com/packages/waygood-blockchaindata)
```

###  Alternatives

[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

21024.9k](/packages/unicodeveloper-laravel-emoji)[bitwasp/bitcoin-lib

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

13922.3k5](/packages/bitwasp-bitcoin-lib)[victorybiz/geoip-location

Get the geographical location of website visitors based on their IP addresses. Support Laravel and PHP (Non-Laravel) Project.

22157.9k2](/packages/victorybiz-geoip-location)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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