Git Product home page Git Product logo

formysister / multichain-wallet-sdk Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 2.0 6.15 MB

📱💳TS/JS library to create & manage crypto wallet and manage payment for various blockchain⛓ networks

Home Page: https://cybers-organization-5.gitbook.io/multichain-wallet-sdk-documentation

License: MIT License

JavaScript 0.06% TypeScript 99.94%
bitcoin blockchain cardano crypto-wallet ethereum javascript multichain ripple solana tron

multichain-wallet-sdk's Introduction

👷‍♂️🚧 This library is under construction 🚧👷‍♂️

multichain-wallet-sdk [multichain wallet development kit]

📡Supported Network List

  • EVM based networks
  • Solana
  • BNB Beacon Chain (Temporarily disabled)

Documentation

installation

npm install multichain-wallet-sdk

import example (es5)

const { EthereumWallet } =  require('multichain-wallet-sdk');

import example (es6)

import { EthereumWallet } from  'multichain-wallet-sdk';

functions(Ethereum)

  • Create wallet
  • Recover wallet from phrase words
  • Create master seed from mnemonic
  • Create account
  • Get token detail
  • Get token balance
  • Send ETH
  • Token approve
  • Token transfer
  • Check address is contract address (util function)
  • Check contract is NFT contract (util function)
  • Check contract is ERC721 NFT (util function)
  • Check contract is ERC1155 NFT (util function)
  • Get contract object from address and ABI interface(util function)
  • Convert GWEI to WEI (util function)
  • Convert GWEI to ETH (util function)
  • Convert WEI to ETH (util function)
  • Get latency of JSON RPC endpoint (util function)
  • GET latency of websocket endpoint (util function)

functions(Solana)

  • Create wallet
  • Recover wallet from mnemonic phrase
  • Get key pair from private key
  • Create account
  • Recover account from private key
  • Get token/SOL balance of address
  • Send SOL
  • Transfer token
  • Get provider from RPC url (util function)
  • Get transaction from hash (util function)
  • Get existing token list of network (util function)
  • Get token detail from token address (util function)

functions(BNB Beacon Chain)

  • Create wallet
  • Recover wallet from mnemonic phrase
  • Recover account from private key
  • Get BNB balance
  • Send BNB
  • Transfer tokens

Contribute here. Submit issues here.

More blockchains and networks will be added.

Enjoy your work !

Made with ❤ by formysister

multichain-wallet-sdk's People

Contributors

formysister avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

multichain-wallet-sdk's Issues

`createAccount` does not work: Uncaught (in promise) TypeError: Invalid mnemonic type: object

Trying to use the library to generate a mnemonic throws this error. After some investigation I found out the reason for this is the incorrect use of web-bip39, which returns a promise of a mnemonic, rather than the words.

Either change the code in the library to use await, or use bip39

On that note, is the use of a custom lib copied from "web-bip39" with only 15 stars rather than using the accepted "bip39" with 1K stars?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.