1.1.0 • Published 2 years ago
kcc-bridge-sdk-bsc v1.1.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"
})