agent-js icon indicating copy to clipboard operation
agent-js copied to clipboard

Return Txn Hashes with Actor Methods

Open imsk17 opened this issue 2 years ago • 1 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

imsk17 avatar Jul 17 '23 09:07 imsk17

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?

krpeacock avatar Aug 14 '23 16:08 krpeacock