LeoWallet
@demox-labs/aleo-wallet-adapter-leo / Exports / LeoWallet
Interface: LeoWallet
Hierarchy
EventEmitter
<LeoWalletEvents
>↳
LeoWallet
Table of contents
Properties
Methods
Properties
publicKey
• Optional
publicKey: string
Defined in
Methods
addListener
▸ addListener<T
>(event
, fn
, context?
): LeoWallet
Type parameters
Parameters
Returns
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
decrypt
▸ decrypt(cipherText
, tpk?
, programId?
, functionName?
, index?
): Promise
<{ text
: string
}>
Parameters
Returns
Promise
<{ text
: string
}>
Defined in
disconnect
▸ disconnect(): Promise
<void
>
Returns
Promise
<void
>
Defined in
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
isAvailable
▸ isAvailable(): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
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
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
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
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
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
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
requestDeploy
▸ requestDeploy(deployment
): Promise
<{ transactionId?
: string
}>
Parameters
Returns
Promise
<{ transactionId?
: string
}>
Defined in
requestExecution
▸ requestExecution(transaction
): Promise
<{ transactionId?
: string
}>
Parameters
Returns
Promise
<{ transactionId?
: string
}>
Defined in
requestRecordPlaintexts
▸ requestRecordPlaintexts(program
): Promise
<{ records
: any
[] }>
Parameters
Returns
Promise
<{ records
: any
[] }>
Defined in
requestRecords
▸ requestRecords(program
): Promise
<{ records
: any
[] }>
Parameters
Returns
Promise
<{ records
: any
[] }>
Defined in
requestTransaction
▸ requestTransaction(transaction
): Promise
<{ transactionId?
: string
}>
Parameters
Returns
Promise
<{ transactionId?
: string
}>
Defined in
requestTransactionHistory
▸ requestTransactionHistory(program
): Promise
<{ transactions
: any
[] }>
Parameters
Returns
Promise
<{ transactions
: any
[] }>
Defined in
signMessage
▸ signMessage(message
): Promise
<{ signature
: Uint8Array
}>
Parameters
Returns
Promise
<{ signature
: Uint8Array
}>
Defined in
transactionStatus
▸ transactionStatus(transactionId
): Promise
<{ status
: string
}>
Parameters
Returns
Promise
<{ status
: string
}>
Defined in
Last updated