enchantmask
v3.1.4
Published
This is package which provides various methods to interact with metamask wallet
Downloads
10
Maintainers
Readme
About The Project
EnchantMask : Metamask Interaction based Npm Package
Enchantmask is an npm package designed to streamline interaction with MetaMask, providing developers with convenient methods to perform essential Ethereum-related tasks. By integrating Enchantmask into your project, you can effortlessly incorporate MetaMask functionality and enhance the user experience of your decentralized applications (DApps).
Key Features:
1.switchChain():
This method facilitates seamless switching between Ethereum chains, allowing users to effortlessly navigate different networks supported by MetaMask.
2.getPublicEncryptionKey():
Retrieve the encryption key associated with the Ethereum account currently connected via MetaMask.
3.connectAccount() :
Initiate a request for user accounts, prompting MetaMask to provide account information for transaction authorization.
4.signMessage() :
Enable personal signing capabilities, allowing users to sign messages or transactions using their MetaMask accounts securely.
5. getBlockNumber() :
Retrieve the latest block number on the Ethereum blockchain.
... and Many More
Built With
- More Specifically it uses JSON-RPC API of Metamask and use some UTF-8 Conversions for some messages and it uses Javascript .
Prerequisites
npm
npm install npm@latest -g
You May Require Metamask Wallet and Some Matic or Testnet Tokens Also and Some Cases NVM(NodeJS Version Manager) Also
NodeJs
Download Nodejs Version ^ 18.0.0 LTS
Installation
Follow The Installation manual and install dependencies
1.Install Directly From NPM
npm i enchantmask@lastest / npm i enchantmask@lastest --force (IF Any Error Occurs)