Package io.api.etherscan.core.impl
Class AccountApiProvider
- java.lang.Object
-
- io.api.etherscan.core.impl.AccountApiProvider
-
- All Implemented Interfaces:
IAccountApi
public class AccountApiProvider extends java.lang.Object implements IAccountApi
Account API Implementation- Since:
- 28.10.2018
- Author:
- GoodforGod
- See Also:
IAccountApi
-
-
Method Summary
All Methods Instance Methods Concrete 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 public Balance balance(java.lang.String address) throws ApiException
Description copied from interface:IAccountApiAddress ETH balance- Specified by:
balancein interfaceIAccountApi- Parameters:
address- to look for- Returns:
- balance
- Throws:
ApiException
-
balance
@NotNull public TokenBalance balance(java.lang.String address, java.lang.String contract) throws ApiException
Description copied from interface:IAccountApiERC20 token balance for address- Specified by:
balancein interfaceIAccountApi- Parameters:
address- to look forcontract- for token- Returns:
- token balance
- Throws:
ApiException
-
balances
@NotNull public java.util.List<Balance> balances(java.util.List<java.lang.String> addresses) throws ApiException
Description copied from interface:IAccountApiMaximum 20 address for single batch request If addresses more than 20, then there will be MORE than 1 request performed- Specified by:
balancesin interfaceIAccountApi- Parameters:
addresses- to look for- Returns:
- balance[0] for address[0], etc
- Throws:
ApiException
-
txs
@NotNull public java.util.List<Tx> txs(java.lang.String address) throws ApiException
Description copied from interface:IAccountApiFind all txs- Specified by:
txsin interfaceIAccountApi- Parameters:
address- to look for txs- Returns:
- tx info
- Throws:
ApiException
-
txs
@NotNull public java.util.List<Tx> txs(java.lang.String address, long startBlock) throws ApiException
- Specified by:
txsin interfaceIAccountApi- Throws:
ApiException
-
txs
@NotNull public java.util.List<Tx> txs(java.lang.String address, long startBlock, long endBlock) throws ApiException
- Specified by:
txsin interfaceIAccountApi- Throws:
ApiException
-
txsInternal
@NotNull public java.util.List<TxInternal> txsInternal(java.lang.String address) throws ApiException
Description copied from interface:IAccountApiAll internal txs- Specified by:
txsInternalin interfaceIAccountApi- Parameters:
address- to look for- Returns:
- internal tx
- Throws:
ApiException
-
txsInternal
@NotNull public java.util.List<TxInternal> txsInternal(java.lang.String address, long startBlock) throws ApiException
- Specified by:
txsInternalin interfaceIAccountApi- Throws:
ApiException
-
txsInternal
@NotNull public java.util.List<TxInternal> txsInternal(java.lang.String address, long startBlock, long endBlock) throws ApiException
- Specified by:
txsInternalin interfaceIAccountApi- Throws:
ApiException
-
txsInternalByHash
@NotNull public java.util.List<TxInternal> txsInternalByHash(java.lang.String txhash) throws ApiException
- Specified by:
txsInternalByHashin interfaceIAccountApi- Throws:
ApiException
-
txsToken
@NotNull public java.util.List<TxToken> txsToken(java.lang.String address) throws ApiException
Description copied from interface:IAccountApiAll token txs- Specified by:
txsTokenin interfaceIAccountApi- Parameters:
address- to look for- Returns:
- token txs
- Throws:
ApiException
-
txsToken
@NotNull public java.util.List<TxToken> txsToken(java.lang.String address, long startBlock) throws ApiException
- Specified by:
txsTokenin interfaceIAccountApi- Throws:
ApiException
-
txsToken
@NotNull public java.util.List<TxToken> txsToken(java.lang.String address, long startBlock, long endBlock) throws ApiException
- Specified by:
txsTokenin interfaceIAccountApi- Throws:
ApiException
-
minedBlocks
@NotNull public java.util.List<Block> minedBlocks(java.lang.String address) throws ApiException
Description copied from interface:IAccountApiAll blocks mined by address- Specified by:
minedBlocksin interfaceIAccountApi- Parameters:
address- to look for- Returns:
- mined blocks
- Throws:
ApiException
-
-