PHPackages                             slvler/ether - 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. slvler/ether

ActiveLibrary[API Development](/categories/api)

slvler/ether
============

Laravel etherscan.io api service

v2.0.2(1y ago)17552MITPHPPHP ^8.2

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/slvler/etherscan-service)[ Packagist](https://packagist.org/packages/slvler/ether)[ Docs](https://github.com/slvler/etherscan-service)[ RSS](/packages/slvler-ether/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (14)Used By (0)

Etherscan Service
=================

[](#etherscan-service)

[![tests](https://github.com/slvler/etherscan-service/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/etherscan-service/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/c71223bd9f9cceb485de0c7a24df0f100fe3e8f0bbd8006279e801f5d5c0fcd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c766c65722f65746865722e737667)](https://packagist.org/packages/slvler/ether)[![License](https://camo.githubusercontent.com/7d146eec87d4e89de24a9bc90e092de63b46c8a09dd658387f7d0bb8957b52b8/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f65746865722f6c6963656e7365)](https://packagist.org/packages/slvler/ether)[![Total Downloads](https://camo.githubusercontent.com/2ab29a43ff9aa9563ef1a7b0d8e323645a2659e79564ae57daf7d2f5737fd9df/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f65746865722f646f776e6c6f616473)](https://packagist.org/packages/slvler/ether)

An api service for etherscan.io

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

[](#requirements)

- PHP 8.2
- Laravel 9.x | 10.x | 11.x

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

[](#installation)

To install this package tou can use composer:

```
composer require slvler/ether
```

Usage
-----

[](#usage)

- First, you should extract the config/etherscan.php file to the config folder.

```
php artisan vendor:publish --tag=ether
```

- First of all we'll add the API key and API Url of the service we're using to our .env file of our project. If you don't have an account yet on api.etherscan.io, you should create one. Once you have an account you can copy your API key from the dashboard page and put it into you .env file.

```
ETHERSCAN_BASE_URL=https://api.etherscan.io/
ETHERSCAN_API_KEY=YOUR-API-KEY
```

- This is how you can connect to the etherscan api service.
- Returns the Ether balance of a given address.

```
$ether = new EtherScanService();
$ether->balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
```

- Returns the balance of the accounts from a list of addresses.

```
$data = [
    '0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a',
    '0x63a9975ba31b0b9626b34300f7f627147df1f526',
    '0x198ef1ec325a96cc354c7266a038be8b5c558f67'
];
$ether = new EtherScanService();
$ether->balance_multiple($data);
```

- Returns the list of transactions performed by an address, with optional pagination.

```
$ether = new EtherScanService();
$ether->transactions_normal('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
```

- Returns the list of internal transactions performed by an address, with optional pagination.

```
$ether = new EtherScanService();
$ether->transactions_internal('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
```

- Returns the list of internal transactions performed within a transaction.

```
$ether = new EtherScanService();
$ether->transactions_internal_hash('0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170');
```

- Returns the list of internal transactions performed within a block range, with optional pagination.

```
$ether = new EtherScanService();
$ether->transactions_internal_block_range();
```

- Returns the list of ERC-20 tokens transferred by an address, with optional filtering by token contract.

```
$ether = new EtherScanService();
$ether->token_transfer_events_erc20();
```

- Returns the list of ERC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.

```
$ether = new EtherScanService();
$ether->token_transfer_events_erc721();
```

- Returns the list of ERC-1155 ( Multi Token Standard ) tokens transferred by an address, with optional filtering by token contract.

```
$ether = new EtherScanService();
$ether->token_transfer_events_erc1155();
```

- Returns the list of blocks mined by an address.

```
$ether = new EtherScanService();
$ether->address_blocks_mined();
```

- Returns the balance of an address at a certain block height. - PRO

```
$ether = new EtherScanService();
$ether->balance_single_adress();
```

### Testing

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [slvler](https://github.com/slvler)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/slvler/etherscan-service/blob/main/LICENSE.md) for more information.

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

[](#contributing)

You're very welcome to contribute. Please see [CONTRIBUTING](https://github.com/slvler/etherscan-service/blob/main/CONTRIBUTING.md) for details.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance40

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~90 days

Recently: every ~18 days

Total

10

Last Release

504d ago

Major Versions

v1.2.3 → v2.0.02024-12-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab8128832fb3e8a0d513453a903d7c49475f5f89dbf7ec39cf1d0518026b7ea?d=identicon)[slvler](/maintainers/slvler)

---

Top Contributors

[![selviler](https://avatars.githubusercontent.com/u/56368718?v=4)](https://github.com/selviler "selviler (20 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

apiapi-wrapperetherscanetherscan-apietherscan-iolaravellaravel-packagelaravel-servicewrapperphplaraveletherscanmultichain

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/slvler-ether/health.svg)

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

###  Alternatives

[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[madeitbelgium/wordpress-php-sdk

WordPress Laravel PHP SDK

4422.9k1](/packages/madeitbelgium-wordpress-php-sdk)[gufy/whmcs

WHMCS API for Laravel 5

201.7k](/packages/gufy-whmcs)

PHPackages © 2026

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