gulaandrij / etherscan
This lib is created for connecting to etherscan.io's api using php.
2.0.6
2018-06-23 21:17 UTC
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^0.4.4
- phpunit/phpunit: ^7.1
- slevomat/coding-standard: ^4.6
- squizlabs/php_codesniffer: ^3.3
- symfony/var-dumper: ^4.0
README
This lib is created for connecting to etherscan.io's api using php.
- sync
$esApiConnector = new ApiConnector('your_api_key'); $etherScan = new EtherScan($esApiConnector); $account = $etherScan->getAccount(EtherScan::PREFIX_API); $startT = microtime(1); echo $account->getTransactions('0xbb9bc244d798123fde783fcc1c72d3bb8c189413', 1, 25, 'desc') . PHP_EOL; echo $account->getTransactions('0xbb9bc244d798123fde783fcc1c72d3bb8c189413', 1, 25, 'desc') . PHP_EOL; echo $account->getTransactions('0xbb9bc244d798123fde783fcc1c72d3bb8c189413', 1, 25, 'desc') . PHP_EOL; echo $account->getTransactions('0xbb9bc244d798123fde783fcc1c72d3bb8c189413', 1, 25, 'desc') . PHP_EOL; $endT = microtime(1); echo "DONE IN: " . ($endT - $startT);