Skip to main content

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. Use vault.toBigInt("10.0") to convert from a human value.

Returns

  • Tx: an Ethers v6 TransactionResponse-like object. Call await tx.wait() to confirm.

Example

const to = "0xRecipient...";
const shareAmount = await vault.toBigInt("10.0"); // 10 ctAssets
await (await vault.transfer(to, shareAmount)).wait();