Package io.api.etherscan.core
Interface IAccountApi
- All Known Implementing Classes:
AccountApiProvider
public interface IAccountApi
EtherScan - API Descriptions https://etherscan.io/apis#accounts
- Since:
- 28.10.2018
-
Method Summary
Modifier and TypeMethodDescription@NotNull BalanceAddress ETH balance@NotNull TokenBalanceERC20 token balance for addressMaximum 20 address for single batch request If address MORE THAN 20, then there will be more than 1 request performedminedBlocks(String address) All blocks mined by addressAll txs for given address@NotNull List<TxInternal>txsInternal(String address) @NotNull List<TxInternal>txsInternal(String address, long startBlock) @NotNull List<TxInternal>txsInternal(String address, long startBlock, long endBlock) All internal txs for given address@NotNull List<TxInternal>txsInternalByHash(String txhash) All internal tx for given transaction hashtxsNftToken(String address) txsNftToken(String address, long startBlock) txsNftToken(String address, long startBlock, long endBlock) All ERC-721 (NFT) token txs for given addressAll ERC-20 token txs for given address
-
Method Details
-
balance
Address ETH balance- Parameters:
address- get balance for- Returns:
- balance
- Throws:
ApiException- parent exception class
-
balance
ERC20 token balance for address- Parameters:
address- get balance forcontract- token contract- Returns:
- token balance for address
- Throws:
ApiException- parent exception class
-
balances
Maximum 20 address for single batch request If address MORE THAN 20, then there will be more than 1 request performed- Parameters:
addresses- addresses to get balances for- Returns:
- list of balances
- Throws:
ApiException- parent exception class
-
txs
All txs for given address- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
txs
- Throws:
ApiException
-
txs
- Throws:
ApiException
-
txsInternal
@NotNull @NotNull List<TxInternal> txsInternal(String address, long startBlock, long endBlock) throws ApiException All internal txs for given address- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
txsInternal
- Throws:
ApiException
-
txsInternal
- Throws:
ApiException
-
txsInternalByHash
All internal tx for given transaction hash- Parameters:
txhash- transaction hash- Returns:
- internal txs list
- Throws:
ApiException- parent exception class
-
txsToken
@NotNull @NotNull List<TxToken> txsToken(String address, long startBlock, long endBlock) throws ApiException All ERC-20 token txs for given address- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
txsToken
- Throws:
ApiException
-
txsToken
- Throws:
ApiException
-
txsNftToken
@NotNull @NotNull List<TxToken> txsNftToken(String address, long startBlock, long endBlock) throws ApiException All ERC-721 (NFT) token txs for given address- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
txsNftToken
- Throws:
ApiException
-
txsNftToken
- Throws:
ApiException
-
minedBlocks
All blocks mined by address- Parameters:
address- address to search for- Returns:
- blocks mined
- Throws:
ApiException- parent exception class
-