A dart library to access the etherscan.io apis.
import 'package:etherscan_api/etherscan_api.dart';
final eth = EtherscanAPI(apiKey: 'YourApiKey');
final bal = await eth.balance(
addresses: [
'0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae',
],
);
print(val);
Supported TestNets:
- morden
- ropsten
- rinkeby
Latest
final eth = EtherscanAPI(
apiKey: 'YourApiKey', // Api key
chain: EthChain.ropsten, // Network/chain
enableLogs: true // Enable Logging
);