Account provided by wallet

Params

RpcClient instance

RPC account address

AccountRpc instance

Hierarchy (view full)

Constructors

Properties

_rpcClient: default<WalletApi, AeppApi>
address: `ak_${string}`

Account address

Methods

  • Sign data blob

    Parameters

    • dataRaw: string | Uint8Array

    Returns Promise<Uint8Array>

    Signature

  • Sign delegation, works only in Ceres

    Parameters

    • delegation: `ba_${string}`

      Delegation to sign

    Returns Promise<`sg_${string}`>

    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

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

      Options

    Returns Promise<`sg_${string}`>

    Signature