Skip to content

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

Open
@CurryAyam

Description

@CurryAyam

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.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions