Leo Wallet Docs
Ask or search…
K
Links

WalletContextState

Interface: WalletContextState

Table of contents

Properties

Methods

Properties

autoConnect

autoConnect: boolean
Defined in

connected

connected: boolean
Defined in

connecting

connecting: boolean
Defined in

decrypt

decrypt: (cipherText: string, tpk?: string, programId?: string, functionName?: string, index?: number) => Promise<string>
Type declaration
▸ (cipherText, tpk?, programId?, functionName?, index?): Promise<string>
Parameters
Name
Type
cipherText
string
tpk?
string
programId?
string
functionName?
string
index?
number
Returns
Promise<string>
Defined in

disconnecting

disconnecting: boolean
Defined in

getExecution

getExecution: (transactionId: string) => Promise<string>
Type declaration
▸ (transactionId): Promise<string>
Parameters
Name
Type
transactionId
string
Returns
Promise<string>
Defined in

publicKey

publicKey: string
Defined in

requestBulkTransactions

requestBulkTransactions: (transactions: AleoTransaction[]) => Promise<string[]>
Type declaration
▸ (transactions): Promise<string[]>
Parameters
Name
Type
transactions
AleoTransaction[]
Returns
Promise<string[]>
Defined in

requestDeploy

requestDeploy: (deployment: AleoDeployment) => Promise<string>
Type declaration
▸ (deployment): Promise<string>
Parameters
Name
Type
deployment
AleoDeployment
Returns
Promise<string>
Defined in

requestExecution

requestExecution: (transaction: AleoTransaction) => Promise<string>
Type declaration
▸ (transaction): Promise<string>
Parameters
Name
Type
transaction
AleoTransaction
Returns
Promise<string>
Defined in

requestRecordPlaintexts

requestRecordPlaintexts: (program: string) => Promise<any[]>
Type declaration
▸ (program): Promise<any[]>
Parameters
Name
Type
program
string
Returns
Promise<any[]>
Defined in

requestRecords

requestRecords: (program: string) => Promise<any[]>
Type declaration
▸ (program): Promise<any[]>
Parameters
Name
Type
program
string
Returns
Promise<any[]>
Defined in

requestTransaction

requestTransaction: (transaction: AleoTransaction) => Promise<string>
Type declaration
▸ (transaction): Promise<string>
Parameters
Name
Type
transaction
AleoTransaction
Returns
Promise<string>
Defined in

requestTransactionHistory

requestTransactionHistory: (program: string) => Promise<any[]>
Type declaration
▸ (program): Promise<any[]>
Parameters
Name
Type
program
string
Returns
Promise<any[]>
Defined in

signMessage

signMessage: (message: Uint8Array) => Promise<Uint8Array>
Type declaration
▸ (message): Promise<Uint8Array>
Parameters
Name
Type
message
Uint8Array
Returns
Promise<Uint8Array>
Defined in

transactionStatus

transactionStatus: (transactionId: string) => Promise<string>
Type declaration
▸ (transactionId): Promise<string>
Parameters
Name
Type
transactionId
string
Returns
Promise<string>
Defined in

wallet

wallet: Wallet
Defined in

wallets

wallets: Wallet[]
Defined in

Methods

connect

connect(decryptPermission, network, programs?): Promise<void>
Parameters
Name
Type
decryptPermission
DecryptPermission
network
Testnet
programs?
string[]
Returns
Promise<void>
Defined in

disconnect

disconnect(): Promise<void>
Returns
Promise<void>
Defined in

select

select(walletName): void
Parameters
Name
Type
walletName
WalletName<string>
Returns
void
Defined in