const payload = beginCell()
.storeUint(0xf8a7ea5, 32)
.storeUint(0, 64)
.storeCoins(tokenAmount)
.storeAddress(Address.parse(recipientAddress))
.storeAddress(Address.parse(this.account.address))
.storeBit(0)
.storeCoins(BigInt(this.convertTonToNano(0.05)))
.storeBit(0)
.endCell();
const result = await this.tonConnectUI.sendTransaction({
validUntil: Math.floor(Date.now() / 1000) + 360,
messages: [
{
address: usdtAddress,
amount: this.convertTonToNano(0.1),
payload: payload.toBoc().toString('base64'),
},
],
})`
< /code>
Wenn ich eine Transaktion tätige, z. B. einen Kauf für 10 USDT, und nur 3 USDT, erscheint ein Fehler in der Brieftasche: Unzureichende Mittel (Tonne 0.1). Ich möchte zeigen, wie sehr USDT fehlt. Ist es möglich, dies zu tun?
Ich habe alles ausprobiert und kann keine Antwort finden.
So zeigen Sie den fehlenden USDT -Betrag, wenn es nicht genügend Mittel gibt ⇐ JavaScript
-
- Similar Topics
- Replies
- Views
- Last post