Hierarchy

  • WalletApi

Properties

address.get: (() => Promise<`ak_${string}`[]>)

Type declaration

    • (): Promise<`ak_${string}`[]>
    • Returns Promise<`ak_${string}`[]>

address.subscribe: ((p) => Promise<{
    address: Accounts;
    subscription: ("connected" | "current")[];
}>)

Type declaration

    • (p): Promise<{
          address: Accounts;
          subscription: ("connected" | "current")[];
      }>
    • Parameters

      Returns Promise<{
          address: Accounts;
          subscription: ("connected" | "current")[];
      }>

connection.close: ((p) => void)

Type declaration

    • (p): void
    • Parameters

      • p: any

      Returns void

connection.open: ((p) => Promise<WalletInfo & {
    node?: Node;
}>)

Type declaration

    • (p): Promise<WalletInfo & {
          node?: Node;
      }>
    • Parameters

      • p: {
            connectNode: boolean;
            icons?: Icons;
            name: string;
            version: 1;
        }
        • connectNode: boolean
        • Optional icons?: Icons
        • name: string
        • version: 1

      Returns Promise<WalletInfo & {
          node?: Node;
      }>

delegationToContract.sign: ((p) => Promise<{
    signature: `sg_${string}`;
}>)

Type declaration

    • (p): Promise<{
          signature: `sg_${string}`;
      }>
    • Parameters

      • p: {
            contractAddress: `ct_${string}`;
            name?: `${string}.chain`;
            onAccount: `ak_${string}`;
            oracleQueryId?: `oq_${string}`;
        }
        • contractAddress: `ct_${string}`
        • Optional name?: `${string}.chain`
        • onAccount: `ak_${string}`
        • Optional oracleQueryId?: `oq_${string}`

      Returns Promise<{
          signature: `sg_${string}`;
      }>

message.sign: ((p) => Promise<{
    signature: string;
}>)

Type declaration

    • (p): Promise<{
          signature: string;
      }>
    • Parameters

      • p: {
            message: string;
            onAccount: `ak_${string}`;
        }
        • message: string
        • onAccount: `ak_${string}`

      Returns Promise<{
          signature: string;
      }>

transaction.sign: ((p) => Promise<{
    signedTransaction?: `tx_${string}`;
    transactionHash?: Partial<{
        blockHash: string;
        blockHeight: number;
        hash: string;
        signatures: string[];
        tx: { type: "Tx"; recipientId?: string | undefined; amount?: bigint | undefined; fee: bigint; ttl?: number | undefined; senderId?: string | undefined; nonce?: number | undefined; payload?: string | undefined; ... 53 more ...; version: number; };
    }> & {
        hash: `th_${string}`;
        rawTx: `tx_${string}`;
    };
}>)

Type declaration

    • (p): Promise<{
          signedTransaction?: `tx_${string}`;
          transactionHash?: Partial<{
              blockHash: string;
              blockHeight: number;
              hash: string;
              signatures: string[];
              tx: { type: "Tx"; recipientId?: string | undefined; amount?: bigint | undefined; fee: bigint; ttl?: number | undefined; senderId?: string | undefined; nonce?: number | undefined; payload?: string | undefined; ... 53 more ...; version: number; };
          }> & {
              hash: `th_${string}`;
              rawTx: `tx_${string}`;
          };
      }>
    • Parameters

      • p: {
            innerTx?: boolean;
            networkId: string;
            onAccount: `ak_${string}`;
            returnSigned: boolean;
            tx: `tx_${string}`;
        }

      Returns Promise<{
          signedTransaction?: `tx_${string}`;
          transactionHash?: Partial<{
              blockHash: string;
              blockHeight: number;
              hash: string;
              signatures: string[];
              tx: { type: "Tx"; recipientId?: string | undefined; amount?: bigint | undefined; fee: bigint; ttl?: number | undefined; senderId?: string | undefined; nonce?: number | undefined; payload?: string | undefined; ... 53 more ...; version: number; };
          }> & {
              hash: `th_${string}`;
              rawTx: `tx_${string}`;
          };
      }>

typedData.sign: ((p) => Promise<{
    signature: `sg_${string}`;
}>)

Type declaration

    • (p): Promise<{
          signature: `sg_${string}`;
      }>
    • Parameters

      • p: {
            aci: AciValue;
            data: `cb_${string}`;
            domain: Domain;
            onAccount: `ak_${string}`;
        }
        • aci: AciValue
        • data: `cb_${string}`
        • domain: Domain
        • onAccount: `ak_${string}`

      Returns Promise<{
          signature: `sg_${string}`;
      }>

Generated using TypeDoc