const called = contract.transfer(toAddress, 1)
// console.log(called)
const params = [
{
from: address,
to: toAddress,
gas: "0xbe0", // 30400
gasPrice: "0x9184e72a000", // 10000000000000
value: "0x9184e72a", // 2441406250
data: called.data,
},
]
confluxPortal
.send("cfx_sendTransaction", params)
.then(res => {
console.log(res)
}).catch(err => {
console.log(err)
})
Contract已经配置好, 也可以使用合约方法获取代币余额, 就是进行代币转账的时候, 不能识别到代币, 看下午, 1的后面没有代币符号