polkadot-connect is a library designed to facilitate seamless connections between your decentralized applications (DApps) and Polkadot wallets. It provides an easy-to-use interface for integrating wallet functionalities, ensuring a smooth user experience.
- Easy Integration: Quickly connect your DApp to various Polkadot wallets.
- User-Friendly API: Simple methods for handling wallet connections and transactions.
- Supports Multiple Wallets: Compatible with popular Polkadot wallets.
To install polkadot-connect
, you can use npm or yarn:
npm install @joinerdavid0213/polkadot-connect
or
npm i @joinerdavid0213/polkadot-connect
Here's a quick example of how to use polkadot-connect
in your DApp:
import { connectWallet } from 'polkadot-connect'
async function init() {
const wallet = await connectWallet()
console.log('Connected to wallet:', wallet)
}
init()
For questions or support, please open an issue on GitHub or contact us at [email protected].