buildWithdrawFromMorphoTx function is used to build Calls for withdrawing an asset from Morpho. These calls can be passed the <Transaction /> component to send a transaction.
Usage
code
Returns
Call[]
Parameters
WithdrawFromMorphoParamsDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
buildWithdrawFromMorphoTx function is used to build Calls for withdrawing an asset from Morpho. These calls can be passed the <Transaction /> component to send a transaction.
import { buildWithdrawFromMorphoTx } from '@coinbase/onchainkit/earn';
const calls = await buildWithdrawFromMorphoTx({
vaultAddress: '0x...', // Morpho vault address on Base
amount: 1000000000000000000n, // Amount of tokens to withdraw
recipientAddress: '0x...', // Address of the recipient
});
Call[]
WithdrawFromMorphoParamsWas this page helpful?