Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adidem23/enchantmask

This is NPM Package Which Makes Interaction with Metamask Wallet Easier
https://github.com/adidem23/enchantmask

javascript json-rpc metamask npm-package utf-8

Last synced: about 2 months ago
JSON representation

This is NPM Package Which Makes Interaction with Metamask Wallet Easier

Awesome Lists containing this project

README

        



EnchantMask : Metamask Interaction based Npm Package


Table of Contents



  1. About The Project



  2. Getting Started


  3. Usage

## 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



Metamask-api

- More Specifically it uses JSON-RPC API of Metamask and use some UTF-8 Conversions for some messages and it uses Javascript .

### Prerequisites

* npm
```sh
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
```sh
Download Nodejs Version ^ 18.0.0 LTS
```

### Installation
Follow The Installation manual and install dependencies

1.Install Directly From NPM
```sh
npm i enchantmask@lastest / npm i enchantmask@lastest --force (IF Any Error Occurs)
```

# Read Docs At : https://enchant-docs.vercel.app/