⚛️
Leap Cosmos
  • Introduction
  • for dapps: Connect to Leap
    • Introduction
    • Optimizing Wallet Connectivity for Cosmos Dapps
    • Add Leap to existing Keplr integration
    • Add Leap to a new dapp
    • Suggest chain : Add Leap to a non-native chain
    • Add Leap to a Secret dapp
    • Wallet Connect
    • Wallet Adapters
      • Cosmos Kit
      • Shuttle
    • API Reference
  • for chains: integrate into Leap
    • Introduction
  • for SEI dapps: Connect to Compass
    • Connect to Compass
  • FOR SEI EVM DAPPS: CONNECT TO COMPASS
    • Connect to Compass
    • Supported RPC methods
  • Leap Metamask Snap
    • Introduction
    • Integrating Snaps
      • Metamask Cosmos Snap
      • Cosmos Snap Provider
      • Cosmos Kit
  • Embedded Wallet SDK
    • Embedded Wallet SDK React
    • Embedded Wallet Provider
    • Migration
    • Usage without UI
  • Elements
    • Introduction
    • Get Started
    • Integrate via CDN / Script Tag
    • Integrate as an Embed
    • Components
      • Aggregated Swaps
      • IBC Only Swaps
      • Fiat On-ramp
      • IBC Transfer
      • Multi View
    • Theming
      • Using CSS Variables
      • Advanced Customisations
    • Use Elements Without the UI
    • Tab Config
    • Using Skip API Key
  • Cosmos Nodes
    • Fallback Falooda : Node Fallback System
    • (Coming Soon) Blockchain Node Setup Guide
    • (Coming Soon) Monitoring Blockchain Node Performance
  • RESOURCES
    • Leap Assets
Powered by GitBook
On this page
  • Suggest Adding SNIP-20 Tokens to Leap
  • Get SNIP-20 Viewing Key
  • Update SNIP-20 Viewing Key
  1. for dapps: Connect to Leap

Add Leap to a Secret dapp

This is how you can add Connect to Leap on SCRT dapps

PreviousSuggest chain : Add Leap to a non-native chainNextWallet Connect

Last updated 1 year ago

Adding Connect to Leap on your dapp should be fairly straightforward. You can either refer to the methods we have added below or use the docs made by the SCRT core team here :

Suggest Adding SNIP-20 Tokens to Leap

The webpage can request the user permission to add a SNIP-20 token to Leap's token list. Will throw an error if the user rejects the request. If a SNIP-20 with the same contract address already exists, nothing will happen.

async suggestToken(chainId: string, contractAddress: string): Promise<void>

Get SNIP-20 Viewing Key

Returns the viewing key of a SNIP-20 token registered in Leap. If the SNIP-20 of the contract address doesn't exist, it will throw an error.

async getSecret20ViewingKey( chainId: string, contractAddress: string ): Promise<string>;

Update SNIP-20 Viewing Key

Updates the viewing key of a SNIP-20 token. If the SNIP-20 of the contract address exist, nothing will happen.

async updateViewingKey( chainId: string, contractAddress: string , viewingKey: string): Promise<void>;

We hope this information helps you integrate Leap into your SCRT Dapp. If you have any questions or need further assistance, please don't hesitate to reach out to us at

https://github.com/scrtlabs/secret.js#leap-cosmos-wallet
support@leapwallet.io