Package io.api.etherscan.core.impl
Class AccountApiProvider
java.lang.Object
io.api.etherscan.core.impl.AccountApiProvider
- All Implemented Interfaces:
IAccountApi
Account API Implementation
- Since:
- 28.10.2018
- See Also:
-
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
Description copied from interface:IAccountApiAddress ETH balance- Specified by:
balancein interfaceIAccountApi- Parameters:
address- get balance for- Returns:
- balance
- Throws:
ApiException- parent exception class
-
balance
Description copied from interface:IAccountApiERC20 token balance for address- Specified by:
balancein interfaceIAccountApi- Parameters:
address- get balance forcontract- token contract- Returns:
- token balance for address
- Throws:
ApiException- parent exception class
-
balances
Description copied from interface:IAccountApiMaximum 20 address for single batch request If address MORE THAN 20, then there will be more than 1 request performed- Specified by:
balancesin interfaceIAccountApi- Parameters:
addresses- addresses to get balances for- Returns:
- list of balances
- Throws:
ApiException- parent exception class
-
txs
- Specified by:
txsin interfaceIAccountApi- Throws:
ApiException
-
txs
- Specified by:
txsin interfaceIAccountApi- Throws:
ApiException
-
txs
@NotNull public @NotNull List<Tx> txs(String address, long startBlock, long endBlock) throws ApiException Description copied from interface:IAccountApiAll txs for given address- Specified by:
txsin interfaceIAccountApi- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
txsInternal
- Specified by:
txsInternalin interfaceIAccountApi- Throws:
ApiException
-
txsInternal
@NotNull public @NotNull List<TxInternal> txsInternal(String address, long startBlock) throws ApiException - Specified by:
txsInternalin interfaceIAccountApi- Throws:
ApiException
-
txsInternal
@NotNull public @NotNull List<TxInternal> txsInternal(String address, long startBlock, long endBlock) throws ApiException Description copied from interface:IAccountApiAll internal txs for given address- Specified by:
txsInternalin interfaceIAccountApi- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
txsInternalByHash
Description copied from interface:IAccountApiAll internal tx for given transaction hash- Specified by:
txsInternalByHashin interfaceIAccountApi- Parameters:
txhash- transaction hash- Returns:
- internal txs list
- Throws:
ApiException- parent exception class
-
txsToken
- Specified by:
txsTokenin interfaceIAccountApi- Throws:
ApiException
-
txsToken
@NotNull public @NotNull List<TxToken> txsToken(String address, long startBlock) throws ApiException - Specified by:
txsTokenin interfaceIAccountApi- Throws:
ApiException
-
txsToken
@NotNull public @NotNull List<TxToken> txsToken(String address, long startBlock, long endBlock) throws ApiException Description copied from interface:IAccountApiAll ERC-20 token txs for given address- Specified by:
txsTokenin interfaceIAccountApi- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
txsNftToken
- Specified by:
txsNftTokenin interfaceIAccountApi- Throws:
ApiException
-
txsNftToken
@NotNull public @NotNull List<TxToken> txsNftToken(String address, long startBlock) throws ApiException - Specified by:
txsNftTokenin interfaceIAccountApi- Throws:
ApiException
-
txsNftToken
@NotNull public @NotNull List<TxToken> txsNftToken(String address, long startBlock, long endBlock) throws ApiException Description copied from interface:IAccountApiAll ERC-721 (NFT) token txs for given address- Specified by:
txsNftTokenin interfaceIAccountApi- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
ApiException- parent exception class
-
minedBlocks
Description copied from interface:IAccountApiAll blocks mined by address- Specified by:
minedBlocksin interfaceIAccountApi- Parameters:
address- address to search for- Returns:
- blocks mined
- Throws:
ApiException- parent exception class
-