Interface IAccountApi

All Known Implementing Classes:
AccountApiProvider

public interface IAccountApi
EtherScan - API Descriptions https://etherscan.io/apis#accounts
Since:
28.10.2018
  • Method Details

    • balance

      @NotNull @NotNull Balance balance(String address) throws ApiException
      Address ETH balance
      Parameters:
      address - get balance for
      Returns:
      balance
      Throws:
      ApiException - parent exception class
    • balance

      @NotNull @NotNull TokenBalance balance(String address, String contract) throws ApiException
      ERC20 token balance for address
      Parameters:
      address - get balance for
      contract - token contract
      Returns:
      token balance for address
      Throws:
      ApiException - parent exception class
    • balances

      @NotNull @NotNull List<Balance> balances(List<String> addresses) throws ApiException
      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

      @NotNull @NotNull List<Tx> txs(String address, long startBlock, long endBlock) throws ApiException
      All txs for given address
      Parameters:
      address - get txs for
      startBlock - tx from this blockNumber
      endBlock - tx to this blockNumber
      Returns:
      txs for address
      Throws:
      ApiException - parent exception class
    • txs

      @NotNull @NotNull List<Tx> txs(String address, long startBlock) throws ApiException
      Throws:
      ApiException
    • txs

      @NotNull @NotNull List<Tx> txs(String address) throws ApiException
      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 for
      startBlock - tx from this blockNumber
      endBlock - tx to this blockNumber
      Returns:
      txs for address
      Throws:
      ApiException - parent exception class
    • txsInternal

      @NotNull @NotNull List<TxInternal> txsInternal(String address, long startBlock) throws ApiException
      Throws:
      ApiException
    • txsInternal

      @NotNull @NotNull List<TxInternal> txsInternal(String address) throws ApiException
      Throws:
      ApiException
    • txsInternalByHash

      @NotNull @NotNull List<TxInternal> txsInternalByHash(String txhash) throws ApiException
      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 for
      startBlock - tx from this blockNumber
      endBlock - tx to this blockNumber
      Returns:
      txs for address
      Throws:
      ApiException - parent exception class
    • txsToken

      @NotNull @NotNull List<TxToken> txsToken(String address, long startBlock) throws ApiException
      Throws:
      ApiException
    • txsToken

      @NotNull @NotNull List<TxToken> txsToken(String address) throws ApiException
      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 for
      startBlock - tx from this blockNumber
      endBlock - tx to this blockNumber
      Returns:
      txs for address
      Throws:
      ApiException - parent exception class
    • txsNftToken

      @NotNull @NotNull List<TxToken> txsNftToken(String address, long startBlock) throws ApiException
      Throws:
      ApiException
    • txsNftToken

      @NotNull @NotNull List<TxToken> txsNftToken(String address) throws ApiException
      Throws:
      ApiException
    • minedBlocks

      @NotNull @NotNull List<Block> minedBlocks(String address) throws ApiException
      All blocks mined by address
      Parameters:
      address - address to search for
      Returns:
      blocks mined
      Throws:
      ApiException - parent exception class