Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Binance Smart Chain API url #5

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

marciuz
Copy link
Contributor

@marciuz marciuz commented Jun 27, 2021

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);

@w3spi5
Copy link
Contributor

w3spi5 commented Aug 26, 2024

I've created a similar package based on maslakoff's php-etherscan-api.
you can find here : https://github.com/w3spi5/php-bscscan-api.
Does this meet your PR ?

@maslakoff maslakoff merged commit 4bf9910 into maslakoff:master Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants