xrpl
    Preparing search index...

    Function getConfidentialBalance

    • Decrypt a holder's spendable confidential balance from the ledger.

      Parameters

      • client: Client

        A connected Client.

      • account: string

        The classic XRPL address of the token holder.

      • mptIssuanceID: string

        The 24-byte hex MPTokenIssuanceID.

      • privateKey: string

        The holder's 32-byte hex ElGamal private key.

      Returns Promise<bigint>

      The decrypted spendable balance, or 0n if the MPToken exists but has no confidential spending balance set.

      If the account holds no MPToken for the issuance.