Closed mano7onamm closed 10 months ago
UPD: If I add just a simple button:
<div className="balance" onClick={() => tonConnectUI.sendTransaction(transaction42)}>
<img src={fireImg} alt="Coin" className="coin-image"/>
<span className="coin-count">{balance}</span>
</div>
in Tonkeeper works well (no problems) but in telegram wallet "Failed to send transaction"
Your Question
I'm trying to send transaction in react telegram mini app and have:
What is the reason?
If I connect telegram Wallet I have a message "Failed to send transaction" (but don't really know the reason because there are no js logs in web view.
If I connect Tonkeeper (and open my app in browser) I have the above error. But in Tonkeeper finally transaction is sending.
Manifest is ok because I see the icon and app url when connecting the wallet. Connection is ok also.
Context
I'm trying to do like this: (May I miss something important?)
What have you tried so far?
Tried to change TON address, amount in message. Tried Tonkeeper (works despite the error in console). But in telegram transaction is failed to send.
Relevant Code or Commands
No response
Documentation Check