Skip to content

multi-chain support js sdk, providing a unified interface for multi-chain interaction

License

Notifications You must be signed in to change notification settings

SealSC/multi-chain-js

Repository files navigation

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

About

multi-chain support js sdk, providing a unified interface for multi-chain interaction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •