EtherscanExplorer class

Implementers

Constructors

EtherscanExplorer(String base, List<String> apiKeys, EvmCoinEntity currency)

Properties

apiKeyExcludedUntil Map<String, DateTime>
finalinherited
apiKeyRetryIntervall Duration
finalinherited
apiKeys List<String>
finalinherited
base String
no setter
currency EvmCoinEntity
final
endpointNeedsApiKey Map<String, bool>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
invalidApiKeys List<String>
finalinherited
noApiKeyRetryIntervall Duration
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildBalanceEndpoint(String address) String
buildERC20TransactionEndpoint({required String address, required String contractAddress, int? startblock, int? endblock, int? page, int? offset, Sorting? sorting}) String
buildERC721TransactionEndpoint({required String address, String? contractAddress, int? startblock, int? endblock, int? page, int? offset, Sorting? sorting}) String
buildTokenBalanceEndpoint(String address, String contractAddress) String
buildTransactionEndpoint({required String address, int? startblock, int? endblock, int? page, int? offset, Sorting? sorting}) String
fetchBalance({required String address}) Future<BigInt>
fetchBalanceForToken(String address, CoinEntity token) Future<Amount>
Fetch the Balance of a token given for a given address
fetchERC20Transactions({required String contractAddress, required String address, int? startblock, int? endblock, int? page, int? offset, Sorting? sorting}) Future<List<EtherscanTransaction>>
Fetch all ERC20 Transactions for a given token and address
fetchERC721Transactions({required String address, String? contractAddress, int? startblock, int? endblock, int? page, int? offset, Sorting? sorting}) Future<List<EtherscanTransaction>>
Fetch a list of all ERC721 Tokens for a given address
fetchEstimatedTime(int gasPrice) Future<int?>
fetchEtherscanWithRatelimitRetries<T>(String rawEndpoint, {int maxRetries = 10}) Future<T>
inherited
fetchGasPrice() Future<EvmNetworkFees>
Fetch Gas Prices
fetchTokenBalance({required String address, required String contractAddress}) Future<BigInt>
fetchTransactions({required String address, int? startblock, int? endblock, int? page, int? offset, Sorting? sorting}) Future<List<EtherscanTransaction>>
Fetch all Transactions for the given token on the given address
getBaseEtherscanEndpoint(String fullUrl) String
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited