我正在开发DAPP的应用,现在转账用的TP的API,但是现在不能转USDT。GitHub - TP-Lab/tp-js-sdk: TokenPocket JS API for Dapp of ETH, IOST, TRON, COSMOS, SOLANA, EOS etc. (mobile only) 这个是文档地址,试过了不行。我们换成别的包,但是只能在BNB链上转BNB,不能转USDT。能发一个TP的最新USDT转账的文档吗?或者给个demo。这是我的demo。麻烦看一下。
window.ethereum
.request({
method: “eth_sendTransaction”,
params: [
{
from: “0x1aa3D21fDFD992669764DFd849F62686A1”,
to: “0xEfF1c9606B9cfBba37e4ce6281EF655Fe”,
value: “0x16345785D8A00000”,
gasPrice: “0x5208”,
gas: “0x5208”,
},
],
})
.then((txHash: any) => console.log(txHash, 1111))
.catch((e: any) => console.log(e));
这个demo就是只能转BNB,不能转USDT,但是TP的文档里的
tp.usdtTokenTransfer({
from: ‘3FYbry1GTFmxxxxxxxxxxx’,
to: ‘1NVY7Gdng4Ti3bWm1tiPxxxxxxxxx’,
amount: ‘10.02’,
}).then(res => console.log),这个方法调不起来。