Lamden Wallet Controller Class
This Class interfaces with the Lamden Wallet’s content script. It provids helper methods for creating a connection, getting wallet info, sending transactions and retreiving tx information.
The connection information for your DAPP can be supplied now or later by calling “sendConnection” manually.
IMPORTANT: The window object needs to be available when creating this instance as it will attempt to create listeners.
Creates a “lamdenWalletGetInfo” CustomEvent to ask the Lamden Wallet for the current information. This will fire the “newInfo” events.on event
Check if the Lamden Wallet extention is installed in the user’s broswer.
This will fire the “newInfo” events.on event
Send a connection to the Lamden Wallet for approval. If the connectionRequest object wasn’t supplied to the construtor then it must be supplied here.
Creates a “lamdenWalletSendTx” event to send a transaction request to the Lamden Wallet.If a callback is specified here then it will be called with the transaction result.
This will fire the “txStatus” events.on event
Wallet Connection Request Class Validates and stores the information from a connectionRequest object. See WalletController constructor for connection request params.
Get a JSON string of the approval request information
Telegram: t.me/lamdenchatDiscord: discord.gg/xjBgcAAUpSReddit: reddit.com/r/lamden