PHP code example of slvler / ether
1. Go to this page and download the library: Download slvler/ether library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
slvler / ether example snippets
php artisan vendor:publish --tag=ether
ETHERSCAN_BASE_URL=https://api.etherscan.io/
ETHERSCAN_API_KEY=YOUR-API-KEY
$ether = new EtherScanService();
$ether->balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
$data = [
'0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a',
'0x63a9975ba31b0b9626b34300f7f627147df1f526',
'0x198ef1ec325a96cc354c7266a038be8b5c558f67'
];
$ether = new EtherScanService();
$ether->balance_multiple($data);
$ether = new EtherScanService();
$ether->transactions_normal('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
$ether = new EtherScanService();
$ether->transactions_internal('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
$ether = new EtherScanService();
$ether->transactions_internal_hash('0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170');
$ether = new EtherScanService();
$ether->transactions_internal_block_range();
$ether = new EtherScanService();
$ether->token_transfer_events_erc20();
$ether = new EtherScanService();
$ether->token_transfer_events_erc721();
$ether = new EtherScanService();
$ether->token_transfer_events_erc1155();
$ether = new EtherScanService();
$ether->address_blocks_mined();
$ether = new EtherScanService();
$ether->balance_single_adress();