Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
1 task done
CurryAyam opened this issue Nov 12, 2024 · 3 comments
Open
1 task done

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

CurryAyam opened this issue Nov 12, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@CurryAyam
Copy link

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

  • Yes, I have checked the documentation.
@CurryAyam CurryAyam added the question Further information is requested label Nov 12, 2024
@CurryAyam CurryAyam changed the title [UI-VUE]: how to listen to TON_CONNECT_SDK log [UI-VUE]: Listening to sendTransaction event? Nov 12, 2024
@Rob2870000
Copy link

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
Copy link
Author

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

@Rob2870000
Copy link

Rob2870000 commented Nov 12, 2024 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants