Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.26 KB

README.md

File metadata and controls

60 lines (47 loc) · 2.26 KB

multi-chain-js

Overview

multi-chain-js provides a unified interface for multi-chain interaction.
you only need to implement the business logic once to be able to access different blockchain systems through this SDK without changing code.

supported chains:

Ethereum
Polkadot
Solana
Tron

Install

we separated different chains support lib in different npm package:

@sealsc/polkadot-wrapper
@sealsc/web3-wrapper
@sealsc/solana-wrapper
@sealsc/tronweb-wrapper

so you can just simply install them from NPM:

yarn add @sealsc/***-wrapper 

or

npm install @sealsc/***-wrapper 

dependencies

The SDK is using extension wallets for the blockchain RPC interact, so you must install the extension wallet of the blockchain you want to access.

polkadot{.js} for Polkadot
MetaMask for Ethereum
Phantom for Solana
TronLink for Tron

Usage

/*
 * this is example is for using this sdk to interaction with Ethereum.
 * multi-chain-js provide unified interface for different chains, 
 * if you want to interaction with different chains, just import the right package.
 */
import { Actions } from '@sealsc/web3-wrapper'
let Action = await new Actions()

Example

code
online-demo

Documents

polkadot-wrapper
web3-wrapper
solana-wrapper
tronweb-wrapper