Skip to content

Update syn transaction example #556

@fboucquez

Description

@fboucquez

This one seems out of date with the hardcoded values.

https://docs.symbolplatform.com/guides/monitor/turning-the-asynchronous-transaction-announcement-into-synchronous.html#turning-the-asynchronous-transaction-announcement-into-synchronous

Also, the transaction service is not used correctly. It's a lot simpler:

await listener.open()
try{
  const transaction = await transactionService.announce(signedTransaction, listener).toPromise() 
  console.log(transaction);
} catch(e){
  console.error(e)
} finally{
  listener.close()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1 IssueInformation is wrong, what's described does not match reality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions