Skip to content

Account

martiliones edited this page Jun 12, 2023 · 1 revision

Adamant: Account

adamantApi.getAccountBalance()

Get account balance

  • Type

    interface AdamantApi {
      getAccountBalance(address: string): Promise<GetAccountBalanceResponseDto>;
    }
    
    interface GetAccountBalanceResponseDto {
      balance: string;
      nodeTimestamp: number;
      success: boolean;
      unconfirmedBalance: string;
    }

adamantApi.getAccountInfo()

Get account information by ADAMANT address or Public Key

  • Type

    interface AdamantApi {
      getAccountInfo(
        options: AddressOrPublicKeyObject
      ): Promise<GetAccountInfoResponseDto>;
    }
    
    interface GetAccountInfoResponseDto {
      account: AccountDto;
      nodeTimestamp: number;
      success: boolean;
    }
    
    interface AccountDto {
      address: string;
      balance: string;
      multisignatures: string[];
      publicKey: string;
      secondPublicKey: string;
      secondSignature: number;
      u_multisignatures: string[];
      unconfirmedBalance: string;
      unconfirmedSignature: number;
    }
  • References

    AddressOrPublicKeyObject

adamantApi.getPublicKey()

Get account Public Key

  • Type

    interface AdamantApi {
      getPublicKey(address: string): Promise<GetAccountPublicKeyResponseDto>;
    }
    
    interface GetAccountPublicKeyResponseDto {
      nodeTimestamp: number;
      publicKey: string;
      success: boolean;
    }
Clone this wiki locally