php-etherscan-api
php-etherscan-api copied to clipboard
Added support for Binance Smart Chain API url
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);