LeoWallet

@demox-labs/aleo-wallet-adapter-leo / Exports / LeoWallet

Interface: LeoWallet

Hierarchy

Table of contents

Properties

Methods

Properties

publicKey

Optional publicKey: string

Defined in

adapter.ts:29

Methods

addListener

addListener<T>(event, fn, context?): LeoWallet

Type parameters

Parameters

Returns

LeoWallet

Inherited from

EventEmitter.addListener

Defined in

node_modules/eventemitter3/index.d.ts:45


connect

connect(decryptPermission, network, programs?): Promise<void>

Parameters

Returns

Promise<void>

Defined in

adapter.ts:42


decrypt

decrypt(cipherText, tpk?, programId?, functionName?, index?): Promise<{ text: string }>

Parameters

Returns

Promise<{ text: string }>

Defined in

adapter.ts:32


disconnect

disconnect(): Promise<void>

Returns

Promise<void>

Defined in

adapter.ts:43


emit

emit<T>(event, ...args): boolean

Calls each of the listeners registered for a given event.

Type parameters

Parameters

Returns

boolean

Inherited from

EventEmitter.emit

Defined in

node_modules/eventemitter3/index.d.ts:32


eventNames

eventNames(): keyof LeoWalletEvents[]

Return an array listing the events for which the emitter has registered listeners.

Returns

keyof LeoWalletEvents[]

Inherited from

EventEmitter.eventNames

Defined in

node_modules/eventemitter3/index.d.ts:15


getExecution

getExecution(transactionId): Promise<{ execution: string }>

Parameters

Returns

Promise<{ execution: string }>

Defined in

adapter.ts:39


isAvailable

isAvailable(): Promise<boolean>

Returns

Promise<boolean>

Defined in

adapter.ts:30


listenerCount

listenerCount(event): number

Return the number of listeners listening to a given event.

Parameters

Returns

number

Inherited from

EventEmitter.listenerCount

Defined in

node_modules/eventemitter3/index.d.ts:27


listeners

listeners<T>(event): (...args: ArgumentMap<LeoWalletEvents>[Extract<T, keyof LeoWalletEvents>]) => void[]

Return the listeners registered for a given event.

Type parameters

Parameters

Returns

(...args: ArgumentMap<LeoWalletEvents>[Extract<T, keyof LeoWalletEvents>]) => void[]

Inherited from

EventEmitter.listeners

Defined in

node_modules/eventemitter3/index.d.ts:20


off

off<T>(event, fn?, context?, once?): LeoWallet

Type parameters

Parameters

Returns

LeoWallet

Inherited from

EventEmitter.off

Defined in

node_modules/eventemitter3/index.d.ts:69


on

on<T>(event, fn, context?): LeoWallet

Add a listener for a given event.

Type parameters

Parameters

Returns

LeoWallet

Inherited from

EventEmitter.on

Defined in

node_modules/eventemitter3/index.d.ts:40


once

once<T>(event, fn, context?): LeoWallet

Add a one-time listener for a given event.

Type parameters

Parameters

Returns

LeoWallet

Inherited from

EventEmitter.once

Defined in

node_modules/eventemitter3/index.d.ts:54


removeAllListeners

removeAllListeners(event?): LeoWallet

Remove all listeners, or those of the specified event.

Parameters

Returns

LeoWallet

Inherited from

EventEmitter.removeAllListeners

Defined in

node_modules/eventemitter3/index.d.ts:79


removeListener

removeListener<T>(event, fn?, context?, once?): LeoWallet

Remove the listeners of a given event.

Type parameters

Parameters

Returns

LeoWallet

Inherited from

EventEmitter.removeListener

Defined in

node_modules/eventemitter3/index.d.ts:63


requestBulkTransactions

requestBulkTransactions(transactions): Promise<{ transactionIds?: string[] }>

Parameters

Returns

Promise<{ transactionIds?: string[] }>

Defined in

adapter.ts:36


requestDeploy

requestDeploy(deployment): Promise<{ transactionId?: string }>

Parameters

Returns

Promise<{ transactionId?: string }>

Defined in

adapter.ts:37


requestExecution

requestExecution(transaction): Promise<{ transactionId?: string }>

Parameters

Returns

Promise<{ transactionId?: string }>

Defined in

adapter.ts:35


requestRecordPlaintexts

requestRecordPlaintexts(program): Promise<{ records: any[] }>

Parameters

Returns

Promise<{ records: any[] }>

Defined in

adapter.ts:40


requestRecords

requestRecords(program): Promise<{ records: any[] }>

Parameters

Returns

Promise<{ records: any[] }>

Defined in

adapter.ts:33


requestTransaction

requestTransaction(transaction): Promise<{ transactionId?: string }>

Parameters

Returns

Promise<{ transactionId?: string }>

Defined in

adapter.ts:34


requestTransactionHistory

requestTransactionHistory(program): Promise<{ transactions: any[] }>

Parameters

Returns

Promise<{ transactions: any[] }>

Defined in

adapter.ts:41


signMessage

signMessage(message): Promise<{ signature: Uint8Array }>

Parameters

Returns

Promise<{ signature: Uint8Array }>

Defined in

adapter.ts:31


transactionStatus

transactionStatus(transactionId): Promise<{ status: string }>

Parameters

Returns

Promise<{ status: string }>

Defined in

adapter.ts:38

Last updated