Catch "key was not found" from exerciseByKey


I wonder whether it’s possible to catch a failed exerciseByKey because the key was not found.

Attempt to fetch or exercise by key but no contract with that key was found.


That’s not possible. You can do a lookupByKey in some cases instead. Keep in mind that this has different authorization rules though.

1 Like