Earn
useBuildWithdrawFromMorphoTx
The useBuildWithdrawFromMorphoTx
hook is used to build a withdraw transaction from Morpho from within a React component.
The hook handles the following:
- Fetching data required to build the transaction
- Using
buildWithdrawFromMorphoTx
to build the transaction - Returning the transaction calls to be used with the
<Transaction />
component
Usage
code