@leapwallet/elements
TypeScript icon, indicating that this package has built-in type declarations

1.6.2 • Public • Published

Leap Elements SDK

How to use

Install

npm install @leapwallet/elements

Usage

import { Swaps, ElementsProvider } from '@leapwallet/elements'
import '@leapwallet/elements/styles.css'

import { useElementsWalletConfig } from './wallet-client-config'

const YourDapp = () => {
  return (
    <div className="leap-ui">
      <ElementsProvider
        primaryChainId="cosmoshub-4"
        connectWallet={connectWallet}
        connectedWalletType={walletType}
      >
        <LiquidityView />
      </ElementsProvider>
    </div>
  )
}

Documentation

Developer Docs

TypeDocs

Development

Install

yarn install

Run Development Builds

Run the following two commands in the project root:

yarn dev

Go to http://localhost:5173/ to see the development page.

Readme

Keywords

Package Sidebar

Install

npm i @leapwallet/elements

Weekly Downloads

1,154

Version

1.6.2

License

MIT

Unpacked Size

33 MB

Total Files

183

Last publish

Collaborators

  • leapwallet