var url = 'http://ipaddress:port/walletextension/gettransactionstothis';
var reqdata = {
url: url,
json: true,
body: {"account":{"address":"hex-address"},"offset":0,"limit":250}
}
Request.post(reqdata, function (err_trans, result_trans, body_trans) {
if(err_trans){
res.status(500).send(err_trans);
} else {
res.json({"result":body_trans,"error":err_trans});
}
})
上面的函数我得到body_trans为undefined和err_trans返回null。
但使用https://api.trongrid.io/walletextension/gettransactionstothis之类的 url工作正常。如何解决我的问题。请给我一些想法来解决我的问题