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
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
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
/*
* 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()
polkadot-wrapper
web3-wrapper
solana-wrapper
tronweb-wrapper