Cosmos Snap Provider
The cosmos-snap-provider
is specifically designed for seamless integration of the Leap Cosmos Snap with the CosmJS client.
Installation
or
Methods
cosmjsOfflineSigner
If you're already employing cosmjs libraries for transaction signing, cosmjsOfflineSigner
is recommended. It functions as an offline signer with existing cosmwasm clients. Before utilizing it as an offline signer, verify that the dapp is connected to the Snap.
Usage:
getSnap
This method is used to detect if the Leap Cosmos Snap is installed within the user's browser instance of Metamask.
Usage:
connectSnap
connectSnap
facilitates the connection to the Leap Cosmos Snap. If the Snap isn't installed, this function triggers its installation and establishes a connection.
Usage:
getKey
getKey
fetches the chain address corresponding to a specific chainId. Ensure the Snap is connected with the dapp before invoking this function.
SuggestChain
Utilize the suggestChain
method to suggest any chains of coin type 118.
Usage:
Last updated