Package io.goodforgod.api.etherscan
Interface AccountAPI
- All Known Implementing Classes:
AccountAPIProvider
public interface AccountAPI
EtherScan - API Descriptions ...
- 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 performedblocksMined(@NotNull String address) All blocks mined by addressAll txs for given addresstxsErc1155(@NotNull String address) txsErc1155(@NotNull String address, long startBlock) txsErc1155(@NotNull String address, long startBlock, long endBlock) All ERC-721 (NFT) token txs for given addresstxsErc1155(@NotNull String address, @NotNull String contractAddress) txsErc1155(@NotNull String address, @NotNull String contractAddress, long startBlock) txsErc1155(@NotNull String address, @NotNull String contractAddress, long startBlock, long endBlock) All ERC-721 (NFT) token txs for given addressAll ERC-20 token txs for given addressAll ERC-20 token txs for given address and contract addressAll ERC-721 (NFT) token txs for given addressAll ERC-721 (NFT) token txs for given address@NotNull List<TxInternal>txsInternal(@NotNull String address) @NotNull List<TxInternal>txsInternal(@NotNull String address, long startBlock) @NotNull List<TxInternal>txsInternal(@NotNull String address, long startBlock, long endBlock) All internal txs for given address@NotNull List<TxInternal>txsInternalByHash(@NotNull String txhash) All internal tx for given transaction hash
-
Method Details
-
balance
Address ETH balance- Parameters:
address- get balance for- Returns:
- balance
- Throws:
EtherScanException- parent exception class
-
balance
@NotNull @NotNull TokenBalance balance(@NotNull @NotNull String address, @NotNull @NotNull String contract) throws EtherScanException ERC20 token balance for address- Parameters:
address- get balance forcontract- token contract- Returns:
- token balance for address
- Throws:
EtherScanException- parent exception class
-
balances
@NotNull @NotNull List<Balance> balances(@NotNull @NotNull List<String> addresses) throws EtherScanException 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:
EtherScanException- parent exception class
-
txs
@NotNull @NotNull List<Tx> txs(@NotNull @NotNull String address, long startBlock, long endBlock) throws EtherScanException All txs for given address- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
EtherScanException- parent exception class
-
txs
@NotNull @NotNull List<Tx> txs(@NotNull @NotNull String address, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txs
- Throws:
EtherScanException
-
txsInternal
@NotNull @NotNull List<TxInternal> txsInternal(@NotNull @NotNull String address, long startBlock, long endBlock) throws EtherScanException All internal txs for given address- Parameters:
address- get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
EtherScanException- parent exception class
-
txsInternal
@NotNull @NotNull List<TxInternal> txsInternal(@NotNull @NotNull String address, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txsInternal
@NotNull @NotNull List<TxInternal> txsInternal(@NotNull @NotNull String address) throws EtherScanException - Throws:
EtherScanException
-
txsInternalByHash
@NotNull @NotNull List<TxInternal> txsInternalByHash(@NotNull @NotNull String txhash) throws EtherScanException All internal tx for given transaction hash- Parameters:
txhash- transaction hash- Returns:
- internal txs list
- Throws:
EtherScanException- parent exception class
-
txsErc20
@NotNull @NotNull List<TxErc20> txsErc20(@NotNull @NotNull String address, long startBlock, long endBlock) throws EtherScanException 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:
EtherScanException- parent exception class
-
txsErc20
@NotNull @NotNull List<TxErc20> txsErc20(@NotNull @NotNull String address, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txsErc20
@NotNull @NotNull List<TxErc20> txsErc20(@NotNull @NotNull String address) throws EtherScanException - Throws:
EtherScanException
-
txsErc20
@NotNull @NotNull List<TxErc20> txsErc20(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress, long startBlock, long endBlock) throws EtherScanException All ERC-20 token txs for given address and contract address- Parameters:
address- get txs forcontractAddress- contract address to get txs forstartBlock- tx from this blockNumberendBlock- tx to this blockNumber- Returns:
- txs for address
- Throws:
EtherScanException- parent exception class
-
txsErc20
@NotNull @NotNull List<TxErc20> txsErc20(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txsErc20
@NotNull @NotNull List<TxErc20> txsErc20(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress) throws EtherScanException - Throws:
EtherScanException
-
txsErc721
@NotNull @NotNull List<TxErc721> txsErc721(@NotNull @NotNull String address, long startBlock, long endBlock) throws EtherScanException 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:
EtherScanException- parent exception class
-
txsErc721
@NotNull @NotNull List<TxErc721> txsErc721(@NotNull @NotNull String address, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txsErc721
@NotNull @NotNull List<TxErc721> txsErc721(@NotNull @NotNull String address) throws EtherScanException - Throws:
EtherScanException
-
txsErc721
@NotNull @NotNull List<TxErc721> txsErc721(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress, long startBlock, long endBlock) throws EtherScanException 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:
EtherScanException- parent exception class
-
txsErc721
@NotNull @NotNull List<TxErc721> txsErc721(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txsErc721
@NotNull @NotNull List<TxErc721> txsErc721(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress) throws EtherScanException - Throws:
EtherScanException
-
txsErc1155
@NotNull @NotNull List<TxErc1155> txsErc1155(@NotNull @NotNull String address, long startBlock, long endBlock) throws EtherScanException 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:
EtherScanException- parent exception class
-
txsErc1155
@NotNull @NotNull List<TxErc1155> txsErc1155(@NotNull @NotNull String address, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txsErc1155
@NotNull @NotNull List<TxErc1155> txsErc1155(@NotNull @NotNull String address) throws EtherScanException - Throws:
EtherScanException
-
txsErc1155
@NotNull @NotNull List<TxErc1155> txsErc1155(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress, long startBlock, long endBlock) throws EtherScanException 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:
EtherScanException- parent exception class
-
txsErc1155
@NotNull @NotNull List<TxErc1155> txsErc1155(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress, long startBlock) throws EtherScanException - Throws:
EtherScanException
-
txsErc1155
@NotNull @NotNull List<TxErc1155> txsErc1155(@NotNull @NotNull String address, @NotNull @NotNull String contractAddress) throws EtherScanException - Throws:
EtherScanException
-
blocksMined
@NotNull @NotNull List<Block> blocksMined(@NotNull @NotNull String address) throws EtherScanException All blocks mined by address- Parameters:
address- address to search for- Returns:
- blocks mined
- Throws:
EtherScanException- parent exception class
-