LeoWalletAdapter
@demox-labs/aleo-wallet-adapter-leo / Exports / LeoWalletAdapter
Class: LeoWalletAdapter
Hierarchy
BaseMessageSignerWalletAdapter
↳
LeoWalletAdapter
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new LeoWalletAdapter(__namedParameters?
)
Parameters
Overrides
BaseMessageSignerWalletAdapter.constructor
Defined in
Properties
_connecting
• Private
_connecting: boolean
Defined in
_decryptPermission
• Private
_decryptPermission: string
Defined in
_publicKey
• Private
_publicKey: string
Defined in
_readyState
• Private
_readyState: WalletReadyState
Defined in
_wallet
• Private
_wallet: LeoWallet
Defined in
icon
• icon: string
= 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDkuMC1jMDAwIDc5LjE3MWMyN2ZhYiwgMjAyMi8wOC8xNi0yMjozNTo0MSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWR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ippMdnNFt1BKjd2lBj0kWcc4cLfnqTkTobAPzb9/Tx/RJ1AZheebdoA7BfDxOzIAAIAAAIAOeyMwuKIvV/y6t2tmO8Ov4rKDsAi0u6dLXSw5FY97r68BaA7S5fS38qrrOhOzdrd50xQ+eAku5+BYBZEAEAAAEAAAEAAAEAAAEAAAEAAAEAAAEAAAEAAAEAAAEAAAGwrwBculuonp/Fy3/HjYZD37Xcz2I8O/BmpT35nsQ4VhDo5JI7fwRhX58/Tn5pPNbcES2cKGW/m5/ShdleBrCf4xaGevfaoSEo+zFWydH5+V1ft0rZb7OVefSVvzzd4kNerQxQgY3xllkQ01AACAAACAAAyEJ/BRgAJph5IP1XFpwAAAAASUVORK5CYII='
Overrides
BaseMessageSignerWalletAdapter.icon
Defined in
name
• name: WalletName
<"Leo Wallet"
> = LeoWalletName
Overrides
BaseMessageSignerWalletAdapter.name
Defined in
supportedTransactionVersions
• Readonly
supportedTransactionVersions: any
= null
Overrides
BaseMessageSignerWalletAdapter.supportedTransactionVersions
Defined in
url
• url: string
= 'https://leo.app/download'
Overrides
BaseMessageSignerWalletAdapter.url
Defined in
prefixed
▪ Static
prefixed: string
| boolean
Inherited from
BaseMessageSignerWalletAdapter.prefixed
Defined in
node_modules/eventemitter3/index.d.ts:9
Accessors
connected
• get
connected(): boolean
Returns
boolean
Inherited from
BaseMessageSignerWalletAdapter.connected
Defined in
node_modules/@demox-labs/aleo-wallet-adapter-base/dist/adapter.d.ts:63
connecting
• get
connecting(): boolean
Returns
boolean
Overrides
BaseMessageSignerWalletAdapter.connecting
Defined in
decryptPermission
• get
decryptPermission(): string
Returns
string
Defined in
publicKey
• get
publicKey(): string
Returns
string
Overrides
BaseMessageSignerWalletAdapter.publicKey
Defined in
readyState
• get
readyState(): WalletReadyState
Returns
WalletReadyState
Overrides
BaseMessageSignerWalletAdapter.readyState
Defined in
• set
readyState(readyState
): void
Parameters
Returns
void
Overrides
BaseMessageSignerWalletAdapter.readyState
Defined in
Methods
addListener
▸ addListener<T
>(event
, fn
, context?
): LeoWalletAdapter
Type parameters
Parameters
Returns
Inherited from
BaseMessageSignerWalletAdapter.addListener
Defined in
node_modules/eventemitter3/index.d.ts:45
connect
▸ connect(decryptPermission
, network
, programs?
): Promise
<void
>
Parameters
Returns
Promise
<void
>
Overrides
BaseMessageSignerWalletAdapter.connect
Defined in
decrypt
▸ decrypt(cipherText
, tpk?
, programId?
, functionName?
, index?
): Promise
<string
>
Parameters
Returns
Promise
<string
>
Overrides
BaseMessageSignerWalletAdapter.decrypt
Defined in
disconnect
▸ disconnect(): Promise
<void
>
Returns
Promise
<void
>
Overrides
BaseMessageSignerWalletAdapter.disconnect
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
BaseMessageSignerWalletAdapter.emit
Defined in
node_modules/eventemitter3/index.d.ts:32
eventNames
▸ eventNames(): keyof WalletAdapterEvents
[]
Return an array listing the events for which the emitter has registered listeners.
Returns
keyof WalletAdapterEvents
[]
Inherited from
BaseMessageSignerWalletAdapter.eventNames
Defined in
node_modules/eventemitter3/index.d.ts:15
getExecution
▸ getExecution(transactionId
): Promise
<string
>
Parameters
Returns
Promise
<string
>
Overrides
BaseMessageSignerWalletAdapter.getExecution
Defined in
listenerCount
▸ listenerCount(event
): number
Return the number of listeners listening to a given event.
Parameters
Returns
number
Inherited from
BaseMessageSignerWalletAdapter.listenerCount
Defined in
node_modules/eventemitter3/index.d.ts:27
listeners
▸ listeners<T
>(event
): (...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
[]
Return the listeners registered for a given event.
Type parameters
Parameters
Returns
(...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
[]
Inherited from
BaseMessageSignerWalletAdapter.listeners
Defined in
node_modules/eventemitter3/index.d.ts:20
off
▸ off<T
>(event
, fn?
, context?
, once?
): LeoWalletAdapter
Type parameters
Parameters
Returns
Inherited from
BaseMessageSignerWalletAdapter.off
Defined in
node_modules/eventemitter3/index.d.ts:69
on
▸ on<T
>(event
, fn
, context?
): LeoWalletAdapter
Add a listener for a given event.
Type parameters
Parameters
Returns
Inherited from
BaseMessageSignerWalletAdapter.on
Defined in
node_modules/eventemitter3/index.d.ts:40
once
▸ once<T
>(event
, fn
, context?
): LeoWalletAdapter
Add a one-time listener for a given event.
Type parameters
Parameters
Returns
Inherited from
BaseMessageSignerWalletAdapter.once
Defined in
node_modules/eventemitter3/index.d.ts:54
removeAllListeners
▸ removeAllListeners(event?
): LeoWalletAdapter
Remove all listeners, or those of the specified event.
Parameters
Returns
Inherited from
BaseMessageSignerWalletAdapter.removeAllListeners
Defined in
node_modules/eventemitter3/index.d.ts:79
removeListener
▸ removeListener<T
>(event
, fn?
, context?
, once?
): LeoWalletAdapter
Remove the listeners of a given event.
Type parameters
Parameters
Returns
Inherited from
BaseMessageSignerWalletAdapter.removeListener
Defined in
node_modules/eventemitter3/index.d.ts:63
requestBulkTransactions
▸ requestBulkTransactions(transactions
): Promise
<string
[]>
Parameters
Returns
Promise
<string
[]>
Overrides
BaseMessageSignerWalletAdapter.requestBulkTransactions
Defined in
requestDeploy
▸ requestDeploy(deployment
): Promise
<string
>
Parameters
Returns
Promise
<string
>
Overrides
BaseMessageSignerWalletAdapter.requestDeploy
Defined in
requestExecution
▸ requestExecution(transaction
): Promise
<string
>
Parameters
Returns
Promise
<string
>
Overrides
BaseMessageSignerWalletAdapter.requestExecution
Defined in
requestRecordPlaintexts
▸ requestRecordPlaintexts(program
): Promise
<any
[]>
Parameters
Returns
Promise
<any
[]>
Overrides
BaseMessageSignerWalletAdapter.requestRecordPlaintexts
Defined in
requestRecords
▸ requestRecords(program
): Promise
<any
[]>
Parameters
Returns
Promise
<any
[]>
Overrides
BaseMessageSignerWalletAdapter.requestRecords
Defined in
requestTransaction
▸ requestTransaction(transaction
): Promise
<string
>
Parameters
Returns
Promise
<string
>
Overrides
BaseMessageSignerWalletAdapter.requestTransaction
Defined in
requestTransactionHistory
▸ requestTransactionHistory(program
): Promise
<any
[]>
Parameters
Returns
Promise
<any
[]>
Overrides
BaseMessageSignerWalletAdapter.requestTransactionHistory
Defined in
signMessage
▸ signMessage(message
): Promise
<Uint8Array
>
Parameters
Returns
Promise
<Uint8Array
>
Overrides
BaseMessageSignerWalletAdapter.signMessage
Defined in
transactionStatus
▸ transactionStatus(transactionId
): Promise
<string
>
Parameters
Returns
Promise
<string
>
Overrides
BaseMessageSignerWalletAdapter.transactionStatus
Defined in
Last updated