ChainBaseApiBase class abstract
An abstract class representing the base API for interacting with a blockchain.
This class defines methods for retrieving various information related to ERC-20 tokens, NFT balances, token balances, token transfers, transactions, ENS name resolution, and reverse ENS address lookup.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
getERC20TokenMarketPrice(
EthereumAddress tokenAddress) → Future< TokenPriceResponse> - Retrieves the market price of an ERC-20 token.
-
getNFTBalancesForAddress(
EthereumAddress address, {EthereumAddress? tokenAddress, int page = 1, int pageSize = 20}) → Future< NFTBalancesResponse> - Retrieves NFT balances for a specific address.
-
getTokenBalancesForAddress(
EthereumAddress address, {EthereumAddress? tokenAddress, int page = 1, int pageSize = 20}) → Future< TokenBalancesResponse> - Retrieves token balances for a specific address.
-
getTokenMetadata(
EthereumAddress tokenAddress) → Future< TokenMetadataResponse> - Retrieves token metadata for a specific address.
-
getTokenTransfersForAddress(
EthereumAddress address, {EthereumAddress? tokenAddress, BlockNum? fromBlock, BlockNum? toBlock, DateTime? fromTime, DateTime? toTime, int page = 1, int pageSize = 20}) → Future< TokenTransfersResponse> - Retrieves token transfers for a specific address and token.
-
getTransactionsForAddress(
EthereumAddress address, {EthereumAddress? tokenAddress, BlockNum? fromBlock, BlockNum? toBlock, DateTime? fromTime, DateTime? toTime, int page = 1, int pageSize = 20}) → Future< TransactionsResponse> - Retrieves transactions for a specific address.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveENSName(
String name, {BlockNum? toBlock}) → Future< ENSResponse> - Resolves an ENS name to its corresponding Ethereum address.
-
reverseENSAddress(
EthereumAddress address, {BlockNum? toBlock}) → Future< ENSResponse> - Performs a reverse ENS address lookup to obtain the associated ENS name.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited