2.0.0 • Published 3 years ago
kcc-bridge-sdk v2.0.0
bridge-sdk
English | 简体中文
install
// npm install kcc-bridge-sdk --production
const {Contract} = require("kcc-bridge-sdk").contract;
// new kcc-testnet-bridge instance
const bridge = Contract.getBridgeCore("kcc", {
testnet: true,
fullnode: "https://localhost:8545"
})
// new kcc-testnet-erc20 instance
const usdt = Contract.getERC20("kcc", {
testnet: true,
fullnode: "https://localhost:8545",
contract: "usdt-token-address"
})