In-memory account class

Hierarchy (view full)

Constructors

Properties

address: `ak_${string}`

Account address

secretKey: `sk_${string}`

Secret key

Methods

  • Sign data blob

    Parameters

    • data: string | Uint8Array

      Data blob to sign

    • Optionaloptions: any

      Options

    Returns Promise<Uint8Array>

    Signature

  • Sign delegation, works only in Ceres

    Parameters

    • delegation: `ba_${string}`

      Delegation to sign

    • options: {
          networkId?: string;
      } = {}

      Options

      • OptionalnetworkId?: string

    Returns Promise<`sg_${string}`>

    Signature

  • Sign message

    Parameters

    • message: string

      Message to sign

    • Optionaloptions: any

      Options

    Returns Promise<Uint8Array>

    Signature

  • Sign encoded transaction

    Parameters

    • transaction: `tx_${string}`
    • options: {
          innerTx?: boolean;
          networkId?: string;
      } = {}

      Options

      • OptionalinnerTx?: boolean

        Sign as inner transaction for PayingFor

      • OptionalnetworkId?: string

    Returns Promise<`tx_${string}`>

    Signed transaction

  • Sign typed data

    Parameters

    • data: `cb_${string}`

      Encoded data to sign

    • aci: AciValue

      Type of data to sign

    • options: undefined | Domain & {
          aeppOrigin?: string;
          aeppRpcClientId?: string;
      } = {}

      Options

    Returns Promise<`sg_${string}`>

    Signature