Interface TokenAccount


  • public interface TokenAccount
    Represents a token account on the Solana blockchain. A token account is associated with a specific token and holds the token balance for a given public key. This interface provides access to the public key of the token account and the associated account information.
    • Method Detail

      • getPublicKey

        java.lang.String getPublicKey()
        Returns the public key of the token account. The public key is a base58-encoded string that uniquely identifies the token account on the Solana blockchain.
        Returns:
        the base58-encoded public key of the token account
      • getAccountInfo

        AccountInfo getAccountInfo()
        Returns the account information associated with the token account. The account information contains details about the balance, ownership, and other metadata related to the token account.
        Returns:
        the AccountInfo object containing the token account information