transfer(to, amount)
Transfer ctAssets (vault shares) directly to another address.
Signature
await vault.transfer(to: string, amount: bigint): Promise<Tx>
Parameters
to(string): recipient wallet address.amount(bigint): amount of shares in vault base units. Usevault.toBigInt("10.0")to convert from a human value.
Returns
Tx: an Ethers v6TransactionResponse-like object. Callawait tx.wait()to confirm.
Example
const to = "0xRecipient...";
const shareAmount = await vault.toBigInt("10.0"); // 10 ctAssets
await (await vault.transfer(to, shareAmount)).wait();