Skip to content

Get transaction hash from Client.submit() #117

@0x009922

Description

@0x009922

Description

Transaction hash might be needed to listen for related events after its submitting.

Currently submit methods returns Promise<void>, but it can return a shortcut to get the hash of the submitted transaction.

How it might look like

const txResult = await client.submit(...)
const hash: Uint8Array = txResult.transactionHash()

transactionHash() is a function to avoid unnecessary hash computations when it is not really needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions