Class AccountBaseAbstract

Account is one of the three basic building blocks of an AeSdk and provides access to a signing key pair.

Hierarchy (view full)

Constructors

Properties

address: `ak_${string}`

Account address

Methods

  • Sign data blob

    Parameters

    • data: string | Uint8Array

      Data blob to sign

    • Optionaloptions: {
          aeppOrigin?: string;
          aeppRpcClientId?: string;
      }

      Options

      • OptionalaeppOrigin?: string
      • OptionalaeppRpcClientId?: string

    Returns Promise<Uint8Array>

    Signature

  • Sign delegation, works only in Ceres

    Parameters

    • delegation: `ba_${string}`

      Delegation to sign

    • Optionaloptions: {
          aeppOrigin?: string;
          aeppRpcClientId?: string;
          networkId?: string;
      }

      Options

      • OptionalaeppOrigin?: string
      • OptionalaeppRpcClientId?: string
      • OptionalnetworkId?: string

    Returns Promise<`sg_${string}`>

    Signature

  • Sign message

    Parameters

    • message: string

      Message to sign

    • Optionaloptions: {
          aeppOrigin?: string;
          aeppRpcClientId?: string;
      }

      Options

      • OptionalaeppOrigin?: string
      • OptionalaeppRpcClientId?: string

    Returns Promise<Uint8Array>

    Signature

  • Sign encoded transaction

    Parameters

    • tx: `tx_${string}`

      Transaction to sign

    • options: {
          aeppOrigin?: string;
          aeppRpcClientId?: string;
          authData?: AuthData | ((tx: `tx_${string}`) => Promise<AuthData>);
          innerTx?: boolean;
          networkId?: string;
          onCompiler?: CompilerBase;
          onNode?: Node;
      }

      Options

      • OptionalaeppOrigin?: string
      • OptionalaeppRpcClientId?: string
      • OptionalauthData?: AuthData | ((tx: `tx_${string}`) => Promise<AuthData>)

        Object with gaMeta params

      • OptionalinnerTx?: boolean

        Sign as inner transaction for PayingFor

      • OptionalnetworkId?: string
      • OptionalonCompiler?: CompilerBase
      • OptionalonNode?: Node

    Returns Promise<`tx_${string}`>

    Signed transaction

  • Sign typed data

    Parameters

    • data: `cb_${string}`

      Encoded data to sign

    • aci: AciValue

      Type of data to sign

    • Optionaloptions: Domain & {
          aeppOrigin?: string;
          aeppRpcClientId?: string;
      }

      Options

    Returns Promise<`sg_${string}`>

    Signature