php-etherscan-api icon indicating copy to clipboard operation
php-etherscan-api copied to clipboard

Added support for Binance Smart Chain API url

Open marciuz opened this issue 4 years ago • 0 comments

As far as my - potentially incomplete - information goes, bscscan.com works exactly like etherscan.io, being a fork of it. To allow calls to bscscan.com you can then simply configure the URL, methods and actions should be the same. Therefore it is possible to make calls with :

$client = new \Etherscan\Client($YOUR_APIKEY,  \Etherscan\APIConf::NET_BSC );
$res = $client->api('account')->balance($YOUR_WALLET_TOKEN);

marciuz avatar Jun 27 '21 13:06 marciuz