add-nilchain-to-keplr-button
v1.2.1
Published
## Overview
Readme
Add NilChain Button to Keplr Wallet
Overview
This project provides a Next component that allows users to add a NilChain to their Keplr wallet. Keplr is a popular wallet for the Cosmos ecosystem, and this component facilitates seamless integration of Nillion into users' wallets.
Example Live:
You can check out the live example at: Live example
The library is on NPM: NPM package
Features
- Add NilChain to Keplr: Integrate a custom blockchain into Keplr.
- User-Friendly Interface: Simple button component to handle the chain addition.
- Open Source: Contribute to the project or customize it for your needs.
- For Developers: Can easily to customize the button with class and style attributes
Usage
To use this component into your project, please follow these step:
Install via npm
npm install add-nilchain-to-keplr-button --saveImport
import { AddNillionNetworkButton } from 'add-nilchain-to-keplr-button'; import 'add-nilchain-to-keplr-button/dist/styles.css';Usage
<AddNillionNetworkButton addChainSuccess={async (message) => {}} addChainFail={async (error) => {}} buttonTitle="" className={} style={} > </AddNillionNetworkButton>Refer Props:
type AddToChainButtonProps = { addChainSuccess: (message: string) => void; addChainFail: (error: string) => void; style?: React.CSSProperties; className?: string; buttonTitle?: string; };
Installation Example
To run this example, follow these steps:
- The app requires ^Node 20
Clone the Repository:
git clone https://github.com/daningyn/nillion-add-chain-to-keplr-wallet-button.git cd nillion-add-chain-to-keplr-wallet-buttonInstall dependencies
npm installRun the example:
npm run devThe example will run on
http://localhost:3000
License
This project is licensed under the MIT License - see the MIT file for details.
MIT License
Copyright (c) 2024 daningyn
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contact
For any questions or issues, please open an issue on the GitHub repository or contact us via email at [email protected].
Thank you for using and contributing to the NilChain Add Button for Keplr Wallet!
