dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.

Home Page:https://agent-js.icp.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return Txn Hashes with Actor Methods

imsk17 opened this issue · comments

Is your feature request related to a problem? Please describe.
I need to track this txn hash whether it was a sucess or not.

Describe the solution you'd like
return a Tuple, or use a result type or something, basically return both txn hash and result

Describe alternatives you've considered
None

Additional context
Nope

The transaction hash is an implementation detail within a canister's code. I don't believe there is any generic transaction hash I could provide you with, simply from what's available to the client.

Perhaps the closest would be the request_id, which is useful for a limited time according to the ICP interface specification. Could you provide some more context about what canisters you are trying to interact with, and what you'd need this hash for?