Hierarchy

  • WalletApi

Properties

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

Type declaration

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

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

Type declaration

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

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

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

Type declaration

    • (p: any): void
    • Parameters

      • p: any

      Returns void

connection.open: ((p: { connectNode: boolean; icons?: Icons; name: string; version: 1 }) => Promise<WalletInfo & { node?: <internal>.Node }>)

Type declaration

    • (p: { connectNode: boolean; icons?: Icons; name: string; version: 1 }): Promise<WalletInfo & { node?: <internal>.Node }>
    • Parameters

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

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

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

Type declaration

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

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

      Returns Promise<{ signature: string }>

transaction.sign: ((p: { onAccount: `ak_${string}`; returnSigned: boolean; tx: `tx_${string}` }) => Promise<{ signedTransaction?: `tx_${string}`; transactionHash?: SendReturnType }>)

Type declaration

    • (p: { onAccount: `ak_${string}`; returnSigned: boolean; tx: `tx_${string}` }): Promise<{ signedTransaction?: `tx_${string}`; transactionHash?: SendReturnType }>
    • Parameters

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

      Returns Promise<{ signedTransaction?: `tx_${string}`; transactionHash?: SendReturnType }>

Generated using TypeDoc