Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    Preparing search index...

    Type Alias GetAccountStateAPIResponseFormatted

    Account information

    type GetAccountStateAPIResponseFormatted = {
        account: GenericAccount;
        balances: GetAllBalancesResponse;
        currentHeadBlock: string | null;
        info: AccountInfo;
        representative: Account | null;
    }
    Index

    Properties

    The account for which this information is for

    The balances for the account Each token will have a balance, even if it is 0 This will be an empty array if the account is not open

    Type declaration

    • balance: bigint

      The account balance of the specified token

      This is in raw units, and not the display units that the token uses

    • token: TokenAddress

      The account of the token

    currentHeadBlock: string | null

    The current head block for the account, if there is one this will be null if the account is not open

    Metadata for the account which can be set with the ['setInfo']() method

    Type declaration

    Account info entry

    • OptionaldefaultPermission?: Permissions

      The default permissions for the account

    • description: string

      A description for the account

    • metadata: string

      Arbitrary metadata for the account

    • name: string

      A name for the account

    • Optionalsupply?: bigint

      If the account is a token, the supply of the token

    representative: Account | null

    The current representative for the account, if there is one this will be null if the account is not open or if the account has not yet set a representative