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 decimals). Usevault.toBigInt("10.0")
to convert a human number tobigint
.
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();