Package io.api.etherscan.core
Interface IAccountApi
-
- All Known Implementing Classes:
AccountApiProvider
public interface IAccountApiEtherScan - API Descriptions https://etherscan.io/apis#accounts- Since:
- 28.10.2018
- Author:
- GoodforGod
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Balancebalance(java.lang.String address)Address ETH balanceTokenBalancebalance(java.lang.String address, java.lang.String contract)ERC20 token balance for addressjava.util.List<Balance>balances(java.util.List<java.lang.String> addresses)Maximum 20 address for single batch request If addresses more than 20, then there will be MORE than 1 request performedjava.util.List<Block>minedBlocks(java.lang.String address)All blocks mined by addressjava.util.List<Tx>txs(java.lang.String address)Find all txsjava.util.List<Tx>txs(java.lang.String address, long startBlock)java.util.List<Tx>txs(java.lang.String address, long startBlock, long endBlock)java.util.List<TxInternal>txsInternal(java.lang.String address)All internal txsjava.util.List<TxInternal>txsInternal(java.lang.String address, long startBlock)java.util.List<TxInternal>txsInternal(java.lang.String address, long startBlock, long endBlock)java.util.List<TxInternal>txsInternalByHash(java.lang.String txhash)java.util.List<TxToken>txsToken(java.lang.String address)All token txsjava.util.List<TxToken>txsToken(java.lang.String address, long startBlock)java.util.List<TxToken>txsToken(java.lang.String address, long startBlock, long endBlock)
-
-
-
Method Detail
-
balance
@NotNull Balance balance(java.lang.String address) throws ApiException
Address ETH balance- Parameters:
address- to look for- Returns:
- balance
- Throws:
ApiException
-
balance
@NotNull TokenBalance balance(java.lang.String address, java.lang.String contract) throws ApiException
ERC20 token balance for address- Parameters:
address- to look forcontract- for token- Returns:
- token balance
- Throws:
ApiException
-
balances
@NotNull java.util.List<Balance> balances(java.util.List<java.lang.String> addresses) throws ApiException
Maximum 20 address for single batch request If addresses more than 20, then there will be MORE than 1 request performed- Parameters:
addresses- to look for- Returns:
- balance[0] for address[0], etc
- Throws:
ApiException
-
txs
@NotNull java.util.List<Tx> txs(java.lang.String address) throws ApiException
Find all txs- Parameters:
address- to look for txs- Returns:
- tx info
- Throws:
ApiException
-
txs
@NotNull java.util.List<Tx> txs(java.lang.String address, long startBlock) throws ApiException
- Throws:
ApiException
-
txs
@NotNull java.util.List<Tx> txs(java.lang.String address, long startBlock, long endBlock) throws ApiException
- Throws:
ApiException
-
txsInternal
@NotNull java.util.List<TxInternal> txsInternal(java.lang.String address) throws ApiException
All internal txs- Parameters:
address- to look for- Returns:
- internal tx
- Throws:
ApiException
-
txsInternal
@NotNull java.util.List<TxInternal> txsInternal(java.lang.String address, long startBlock) throws ApiException
- Throws:
ApiException
-
txsInternal
@NotNull java.util.List<TxInternal> txsInternal(java.lang.String address, long startBlock, long endBlock) throws ApiException
- Throws:
ApiException
-
txsInternalByHash
@NotNull java.util.List<TxInternal> txsInternalByHash(java.lang.String txhash)
-
txsToken
@NotNull java.util.List<TxToken> txsToken(java.lang.String address) throws ApiException
All token txs- Parameters:
address- to look for- Returns:
- token txs
- Throws:
ApiException
-
txsToken
@NotNull java.util.List<TxToken> txsToken(java.lang.String address, long startBlock) throws ApiException
- Throws:
ApiException
-
txsToken
@NotNull java.util.List<TxToken> txsToken(java.lang.String address, long startBlock, long endBlock) throws ApiException
- Throws:
ApiException
-
minedBlocks
@NotNull java.util.List<Block> minedBlocks(java.lang.String address) throws ApiException
All blocks mined by address- Parameters:
address- to look for- Returns:
- mined blocks
- Throws:
ApiException
-
-