Class MemoryAccount

In-memory account class

Hierarchy

Constructors

Properties

address: `ak_${string}`

Account address

Methods

  • Sign data blob

    Parameters

    • data: string | Uint8Array

      Data blob to sign

    • Optional options: any

      Options

    Returns Promise<Uint8Array>

    Signature

  • Sign delegation of AENS, oracle operations to a contract

    Parameters

    • contractAddress: `ct_${string}`

      Address of a contract to delegate permissions to

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

      Options

      • Optional networkId?: string

    Returns Promise<`sg_${string}`>

    Signature

  • Sign message

    Parameters

    • message: string

      Message to sign

    • Optional options: any

      Options

    Returns Promise<Uint8Array>

    Signature

  • Sign delegation of an AENS name to a contract

    Parameters

    • contractAddress: `ct_${string}`

      Address of a contract to delegate permissions to

    • name: `${string}.chain`

      AENS name to manage by a contract

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

      Options

      • Optional networkId?: string

    Returns Promise<`sg_${string}`>

    Signature

  • Sign delegation of oracle query to a contract

    Warning! Implementations needs to ensure that decoded oracle query id is not equal to decoded current account address unless https://github.com/aeternity/aesophia/issues/475 is fixed.

    Warning! Implementations needs to ensure that oracle query and contract exists unless https://github.com/aeternity/aesophia/issues/474 is fixed.

    Parameters

    • contractAddress: `ct_${string}`

      Address of a contract to delegate permissions to

    • oracleQueryId: `oq_${string}`

      Oracle query ID to reply by a contract

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

      Options

      • Optional networkId?: string

    Returns Promise<`sg_${string}`>

    Signature

  • Sign encoded transaction

    Parameters

    • transaction: `tx_${string}`

      Transaction to sign

    • __namedParameters: {
          innerTx?: boolean;
          networkId?: string;
      } = {}

      Options

      • Optional innerTx?: boolean
      • Optional networkId?: string

    Returns Promise<`tx_${string}`>

    Signed transaction

  • Sign typed data

    Parameters

    • data: `cb_${string}`

      Encoded data to sign

    • aci: AciValue
    • __namedParameters: undefined | Domain & {
          aeppOrigin?: string;
          aeppRpcClientId?: string;
      } = {}

      Options

    Returns Promise<`sg_${string}`>

    Signature

Generated using TypeDoc