1.0.4 • Published 4 months ago
h-unielon-ins v1.0.4
npm install h-unielon-ins
import UnielonIns from "h-unielon-ins";
连接钱包
let tron = new UnielonIns("TRrS8BtBnXKWtWLypodWdsTL1mDaiPc61k") let result = await tron.connect()
// let sign = await tron.sign_message("this is a test message") // console.log(sign)
/ let tx = await tron.approve({ token:"TE9yud6CgmChFHsCNHTe9ui5q6mfidZzrA", amount:1000 }) console.log(tx) /
/ let tx = await tron.pay_token({ token:"TE9yud6CgmChFHsCNHTe9ui5q6mfidZzrA", amount:1000, id:1 }) console.log(tx) / let tx = await tron.setting("TM4irrJLYDvC5ujM6Hb2o4V9rTLbqvUNdc") console.log(tx)
/ let contract = await tron.deploy("TM4irrJLYDvC5ujM6Hb2o4V9rTLbqvUNdc") console.log(contract) /