useTx
A hook for sending a transaction for a contract and decoding successful responses or receiving errors. This hook is used in combination with the result of useContract.
See useink/utils helpers for compatible functions that work well with this hook.
Basic Usage
Return Value
Transaction Statuses
useink extends transaction statuses defined in the Substrate transaction-pool
pallet. These are used for pre-transaction senarios such as awaiting signature in a wallet, dry runs, or handling a JavaScript error.
Want to Learn More?
Learn more about the Substrate transaction-pool
Watch a video on transaction lifecycles
Common Patterns With useTx
See shouldDisable and shouldDisableStrict.
Last updated