Orbiter-Sdk is a secure and fast Layer2 cross-platform transfer library
# Use yarn
yarn add orbiter-sdk
# Or use npm
npm install orbiter-sdk --save
Front-end example project based on vue3+vite. dir
Field | type | default | desc |
---|---|---|---|
chainId | number | - | Orbiter's chainId |
name | string | - | Token name. ex: ETH, USDC |
address | string | - | Token contract address |
precision | number | - | Token decimals |
makerAddress | string | - | Orbiter's maker ethereum address |
icon | string | - | Token icon(TODO) |
Field | type | default | desc |
---|---|---|---|
id | number | - | Orbiter's chainId |
name | string | - | Chain name |
networkId | number | string | - | Chain nerworkId |
icon | string | - | Chain icon(TODO) |
value: 'Mainnet' | 'Testnet'
// constructor
const bridge = new Bridge('Mainnet' or 'Testnet')
Params: -
Return: 'Mainnet' | 'Testnet'