如何在tron网站中调用付费功能

时间:2020-05-26 05:15:59

标签: blockchain tron tronweb

我使用功能send(),但我无法成功。我使用shasta测试网。 我用像这样:

async function triggercontract2(){
   let instance = await tronWeb.contract().at('TYG94abpo1Am6suTuZFkfjATCBgyt4ySny');

   let res = await instance["placeBidBox"]([0,1],[1,1],"10:51").send({
    feeLimit:100000000,
    callValue:0,
    tokenId:1000036,
    tokenValue:100,
    shouldPollResponse:true
   });

   console.log("placeBid")
   console.log(res);
}
triggercontract2();

请帮助我。谢谢;

0 个答案:

没有答案