Code Monkey home page Code Monkey logo

js-wallet-sdk's Introduction

js-wallet-sdk

This is a typescript/javascript language wallet solution that supports offline transactions. We currently support various mainstream public blockchains, and will gradually release the source codes for each blockchain.

Npm Install

To obtain the latest version, simply require the project using npm:

# needed for all coins
npm install @okxweb3/crypto-lib
npm install @okxweb3/coin-base

# for eth
npm install @okxweb3/coin-ethereum

# for bitcoin
npm install @okxweb3/coin-bitcoin

Build Locally

You can build the sdk locally ,and run test-code.

sh build.sh

Supported chains

Account Generation Transaction Creation Transaction Signing
BTC
Ethereum
Aptos
Cosmos
Eos
Flow
Stacks
Starknet
Sui
Tron
Osmosis
Cardano

*BTC: Supports Supports BRC20-related functions, including inscription creation, BRC20 buying and selling.

Main modules

  • crypto-lib: Handles general security and signature algorithms.
  • coin-base: Provides coin common interface.
  • coin-*: Implements transaction creation and signature in each coin type.

Example

For specific usage examples of each coin type, please refer to the corresponding test files. Remember to replace the placeholder private key with your own private key, which is generally in hex format.

Feedback

You can provide feedback directly in GitHub Issues, and we will respond promptly.

License

Most packages or folders are MIT licensed, see package or folder for the respective license.

js-wallet-sdk's People

Contributors

debuggor avatar hjguang2018 avatar larry-a4 avatar lwwl-123 avatar thinpanda avatar yanminmin avatar

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.