Cosmos Snap Provider
Last updated
Last updated
The cosmos-snap-provider
is specifically designed for seamless integration of the Leap Cosmos Snap with the client.
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:
This method is used to detect if the Leap Cosmos Snap is installed within the user's browser instance of Metamask.
Usage:
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
fetches the chain address corresponding to a specific chainId. Ensure the Snap is connected with the dapp before invoking this function.
Utilize the suggestChain
method to suggest any chains of coin type 118.
Usage: