Docs

withdraw

Calls the "withdraw" function on the contract.

Example

import { withdraw } from "thirdweb/extensions/erc4626";
const transaction = withdraw({
contract,
assets: ...,
receiver: ...,
owner: ...,
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.