Leo Wallet Docs
Home
  • Wallet Adapter for Aleo Apps
  • packages
    • ui
      • docs
        • functions
          • useWalletModal
        • interfaces
          • WalletIconProps
          • WalletModalContextState
          • WalletModalProps
          • WalletModalProviderProps
        • variables
          • WalletConnectButton
          • WalletDisconnectButton
          • WalletIcon
          • WalletModal
          • WalletModalButton
          • WalletModalContext
          • WalletModalProvider
          • WalletMultiButton
    • core
      • base
        • docs
          • classes
            • BaseMessageSignerWalletAdapter
            • BaseSignerWalletAdapter
            • BaseWalletAdapter
            • Deployment
            • EventEmitter
            • Transaction
            • Transition
            • WalletAccountError
            • WalletConfigError
            • WalletConnectionError
            • WalletDecryptionError
            • WalletDecryptionNotAllowedError
            • WalletDisconnectedError
            • WalletDisconnectionError
            • WalletError
            • WalletKeypairError
            • WalletLoadError
            • WalletNotConnectedError
            • WalletNotReadyError
            • WalletNotSelectedError
            • WalletPublicKeyError
            • WalletRecordsError
            • WalletSendTransactionError
            • WalletSignMessageError
            • WalletSignTransactionError
            • WalletTimeoutError
            • WalletTransactionError
            • WalletWindowBlockedError
            • WalletWindowClosedError
          • enumerations
            • DecryptPermission
            • WalletAdapterNetwork
            • WalletReadyState
          • functions
            • scopePollingDetectionStrategy
          • interfaces
            • AleoDeployment
            • AleoTransaction
            • AleoTransition
            • MessageSignerWalletAdapterProps
            • SignerWalletAdapterProps
            • WalletAdapterEvents
            • WalletAdapterProps
          • type-aliases
            • Adapter
            • MessageSignerWalletAdapter
            • SignerWalletAdapter
            • SupportedTransactionVersions
            • TransactionOrVersionedTransaction
            • WalletAdapter
            • WalletName
          • @demox-labs
            • namespaces
              • EventEmitter
                • interfaces
                  • EventEmitterStatic
                  • ListenerFn
                • type-aliases
                  • ArgumentMap
                  • EventArgs
                  • EventListener
                  • EventNames
                  • ValidEventTypes
                • variables
                  • EventEmitter
      • react
        • docs
          • functions
            • useLocalStorage
            • useWallet
          • interfaces
            • Wallet
            • WalletContextState
            • WalletProviderProps
          • variables
            • WalletContext
            • WalletProvider
    • wallets
      • leo
        • docs
          • classes
            • LeoWalletAdapter
          • interfaces
            • LeoWallet
            • LeoWalletAdapterConfig
            • LeoWalletEvents
            • LeoWindow
          • variables
            • LeoWalletName
Powered by GitBook
On this page
  • Interface: WalletContextState
  • Properties
  • Methods

Was this helpful?

  1. packages
  2. core
  3. react
  4. docs
  5. interfaces

WalletContextState

PreviousWalletNextWalletProviderProps

Last updated 10 days ago

Was this helpful?


/ WalletContextState

Interface: WalletContextState

Defined in:

Properties

autoConnect

autoConnect: boolean

Defined in:


connected

connected: boolean

Defined in:


connecting

connecting: boolean


decrypt()

decrypt: (cipherText, tpk?, programId?, functionName?, index?) => Promise<string>

Parameters

cipherText

string

tpk?

string

programId?

string

functionName?

string

index?

number

Returns

Promise<string>


disconnecting

disconnecting: boolean


getExecution()

getExecution: (transactionId) => Promise<string>

Parameters

transactionId

string

Returns

Promise<string>


publicKey

publicKey: string


requestBulkTransactions()

requestBulkTransactions: (transactions) => Promise<string[]>

Parameters

transactions

AleoTransaction[]

Returns

Promise<string[]>


requestDeploy()

requestDeploy: (deployment) => Promise<string>

Parameters

deployment

AleoDeployment

Returns

Promise<string>


requestExecution()

requestExecution: (transaction) => Promise<string>

Parameters

transaction

AleoTransaction

Returns

Promise<string>


requestRecordPlaintexts()

requestRecordPlaintexts: (program) => Promise<any[]>

Parameters

program

string

Returns

Promise<any[]>


requestRecords()

requestRecords: (program) => Promise<any[]>

Parameters

program

string

Returns

Promise<any[]>


requestTransaction()

requestTransaction: (transaction) => Promise<string>

Parameters

transaction

AleoTransaction

Returns

Promise<string>


requestTransactionHistory()

requestTransactionHistory: (program) => Promise<any[]>

Parameters

program

string

Returns

Promise<any[]>


signMessage()

signMessage: (message) => Promise<Uint8Array>

Parameters

message

Uint8Array

Returns

Promise<Uint8Array>


transactionStatus()

transactionStatus: (transactionId) => Promise<string>

Parameters

transactionId

string

Returns

Promise<string>


transitionViewKeys()

transitionViewKeys: (transactionId) => Promise<string[]>

Parameters

transactionId

string

Returns

Promise<string[]>


wallet


wallets

Methods

connect()

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

Parameters

decryptPermission

DecryptPermission

network

WalletAdapterNetwork

programs?

string[]

Returns

Promise<void>


disconnect()

disconnect(): Promise<void>

Returns

Promise<void>


select()

select(walletName): void

Parameters

walletName

WalletName

Returns

void

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

Defined in:

wallet:

Defined in:

wallets: []

Defined in:

Defined in:

Defined in:

Defined in:

@demox-labs/aleo-wallet-adapter-react
@demox-labs/aleo-wallet-adapter-react
useWallet.ts:18
useWallet.ts:19
useWallet.ts:24
useWallet.ts:23
useWallet.ts:32
useWallet.ts:25
useWallet.ts:40
useWallet.ts:22
useWallet.ts:36
useWallet.ts:37
useWallet.ts:35
useWallet.ts:41
useWallet.ts:33
useWallet.ts:34
useWallet.ts:42
useWallet.ts:31
useWallet.ts:38
useWallet.ts:39
Wallet
useWallet.ts:21
Wallet
useWallet.ts:20
useWallet.ts:28
useWallet.ts:29
useWallet.ts:27