Wallet Client Setup
Quickly setup a few thing to get you up and running in 15 minutes
We have released v1.0.0 of Elements with an improved UX and developer API. We recommend you to use v1.x. Here's the migration guide for v0.x users.
Elements requires a few methods to work. For this purpose, elements needs you to pass in a wallet client.
WalletClient
This is an object that has the following methods that the liquidity components use:
enable
: function that enables chain(s) on the wallet.getAccount
: function that returns the account for a given chain idgetSigner
: function that returns a signer for a given chain idnetwork
: key to set the network settings for the sdk (this is optional and by default set tomainnet
)We export a
NETWORK
key from elements which you can use to set this key
Here's the interface:
Setup
You can do a custom implementation of wallet client. We have created examples of wallet clients with the most common wallet adapters in cosmos.
Cosmos Kit
Last updated