useDryRun
A hook for calling a transaction as a dry run - a transction without spending any gas. Dry runs are useful to test if a transaction will be successful and for querying the exact Weight amount a transaction will need to succeed. This hook is used under the hood in useTx, so you should only use this if you wish to display Dry Run information to the user before triggering a transaction.
See useink/utils helpers for compatible functions that work well with this hook.
Usage
Calling with a default caller address
You must first define a default caller in configuration, then call the contract with options:
Return Value
Last updated
Was this helpful?