2017 © Pedro Peláez
 

library etherscan

This lib is created for connecting to etherscan.io's api using php.

image

blockchainrndhub/etherscan

This lib is created for connecting to etherscan.io's api using php.

  • Monday, September 11, 2017
  • by vazgen
  • Repository
  • 4 Watchers
  • 6 Stars
  • 678 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 9 Versions
  • 17 % Grown

The README.md

etherscan

This lib is created for connecting to etherscan.io's api using php., (*1)

There are 2 possible ways of using the lib: , (*2)

  • 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); ```
  • async ``` $esApiConnector = new ApiConnector('your_api_key'); $etherScan = new EtherScan($esApiConnector); $onResponse = function ($responseOnResolve, $context) { echo 'Called on resolve: ' . $responseOnResolve . PHP_EOL; echo 'Called on context: ' . print_r($context, true) . PHP_EOL; }; $onError = function ($responseOnResolve, $context) { echo 'Called on error: ' . $responseOnResolve . PHP_EOL; }; $account = $etherScan->getAccount(EtherScan::PREFIX_API); $startT = microtime(1); $etherScan->callGroupAsync([ [ $account->getTransactionsLink('0xbb9bc244d798123fde783fcc1c72d3bb8c189413', 1, 25, Account::SORT_DESC), $onResponse, $onError, ['Any data type you want to be passed as second argument to the callbacks. This is optional.'] ], [ $account->getTransactionsLink('0xbb9bc244d798123fde783fcc1c72d3bb8c189413', 1, 25, Account::SORT_DESC), $onResponse, $onError ], [ $account->getBalanceLink('0xbb9bc244d798123fde783fcc1c72d3bb8c189413'), $onResponse, $onError ], [ $account->getTransactionsLink('0xbb9bc244d798123fde783fcc1c72d3bb8c189413', 1, 25, Account::SORT_DESC), $onResponse, $onError ], ]); $endT = microtime(1); echo "DONE IN: " . ($endT - $startT); ```

It uses the guzzlehttp/promises to allow aync calls, (*3)

The Versions

11/09 2017

dev-master

9999999-dev

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

11/09 2017

1.0.3

1.0.3.0

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

11/09 2017

dev-develop

dev-develop

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

11/09 2017

dev-finalChanges

dev-finalChanges

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

11/09 2017

1.0.2

1.0.2.0

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

11/09 2017

dev-asyncReact

dev-asyncReact

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

08/09 2017

1.0.1

1.0.1.0

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

07/09 2017

dev-feature/ICO-72

dev-feature/ICO-72

This lib is created for connecting to etherscan.io's api using php.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blockchain R&D Hub

06/09 2017

dev-ICO-65

dev-ICO-65

Etherscan description

  Sources   Download

The Requires

 

The Development Requires

by Blockchain R&D Hub