ton-connect / sdk

SDK for TON Connect 2.0 — a comprehensive communication protocol between wallets and apps in TON ecosystem
Apache License 2.0
325 stars 91 forks source link

[UI-VUE]: Listening to sendTransaction event? #280

Open CurryAyam opened 1 week ago

CurryAyam commented 1 week ago

Your Question

How to listen to sendTransaction, where the transaction was decline/cancelled by user?

 window.addEventListener(
      "ton-connect-ui-transaction-sent-for-signature",
      (event) => {
        console.log("Transaction init", event.detail);
      }
    );
    window.addEventListener(
      "ton-connect-ui-transaction-signing-failed",
      (event) => {
        console.log("Transaction signed failed", event.detail);
      }
    );
    window.addEventListener("ton-connect-ui-transaction-signed", (event) => {
      console.log("Transaction signed", event.detail);
    });

i set above, and i only saw the ton-connect-ui-transaction-sent-for-signature! when i decline the transaction on my wallet. i saw the notification on my app. but i'm didn't get anything from ton-connect-ui-transaction-signing-failed

Context

No response

What have you tried so far?

No response

Relevant Code or Commands

No response

Documentation Check

Rob2870000 commented 6 days ago

window.addEventListener( "ton-connect-ui-transaction-sent-for-signature", (event) => { console.log("Transaction init", event.detail); } ); window.addEventListener( "ton-connect-ui-transaction-signing-failed", (event) => { console.log("Transaction signed failed", event.detail); } ); window.addEventListener("ton-connect-ui-transaction-signed", (event) => { console.log("Transaction signed", event.detail); });

CurryAyam commented 6 days ago

@Rob2870000 i did that already. i didn't get any event from failed transaction/or decline transaction

Rob2870000 commented 6 days ago

Subject: Inquiry Regarding Order

Dear [Recipient Name],

This email is to inquire about the status of my recent order. Could you please provide me with an update on when I can expect to receive it?

Thank you, [Your Name]

-------- Original Email -------- From: Curry @.> Sent: November 12, 2024 8:20:29 AM GMT+03:00 To: ton-connect/sdk @.> Cc: Rob2870000 @.>, Mention @.> Subject: Re: [ton-connect/sdk] [UI-VUE]: Listening to sendTransaction event? (Issue #280)

@Rob2870000 i did that already. i didn't get any event from failed transaction/or decline transaction

-- Reply to this email directly or view it on GitHub: https://github.com/ton-connect/sdk/issues/280#issuecomment-2469632795 You are receiving this because you were mentioned.

Message ID: @.***>