Integrating Snaps
Last updated
Last updated
There are several ways to integrate Leap's Metamask Snaps into your dApp:
If your dApp already uses a wallet adapter to integrate with Cosmos wallets like Leap or Keplr, you can extend this existing integration to include Metamask. This is the simplest approach, as it offers a consistent interface for accessing all wallet methods and requires minimal changes on your end.
Integrate using
Integrate using
Integrate using Shuttle - Coming Soon
If your dApp has its own native wallet management system, there are two routes for direct integration:
If you are an existing Cosmos developer comfortable with using CosmJS and the Stargate signing client, we have developed a wallet provider to facilitate seamless integration. Details are available .
If you prefer using Metamask's native provider (window.ethereum
) to access relevant Cosmos methods, please follow the steps .