π This PHP library allows you to interact with the Ethplorer.io API. It's designed for ease of use and offers the following features:
- π Support for multiple API keys to bypass rate limits on Ethplorer's free account API.
- π¦ Requires no external dependencies.
- β‘ Delivers high-speed performance.
- π Offers two multi-key modes: sequential and random.
Get started quickly with Ethplorer API integration using this library.
To install the library, you can use Composer and run the following command:
composer require numairawan/ethplorer-api-php
To interact with ethplorer.io, follow these simple steps:
use NumairAwan\EthplorerApi\EthplorerApi;
// Example usage:
$apiKeys = ["YOUR_API_KEY_1", "YOUR_API_KEY_2"];
// By default it will use sequential mode with multi-keys for each request
// pass 'true' in 2nd parameter to use random api for each request.
// new EthplorerApi($apiKeys, true);
$ethplorer = new EthplorerApi($apiKeys);
// Fetch last block data
$lastBlockData = $ethplorer->getLastBlock();
var_dump($lastBlockData);
Contributions are welcome! Feel free to fork the repository and submit pull requests as well.
This project is licensed under the MIT license.
Feel free to reach out to me for any project-related queries or collaborations. I'm always happy to connect and discuss ideas!