Skip to main content

vault.depositAndMint(DepositAndMint)

Deposit an array of RWA NFTs into the vault and mint the corresponding amount of security tokens.

DepositAndMint Type Parameters

Returns

Usage

TypeScript

JavaScript

Example outputs

Notes:
  • The vaultController must approve the vault for each NFT token ID first.
  • rwaNfts and tokenIds must align by index.
  • The vaultController must be verified in the security token’s Identity Registry, or the mint reverts with Identity is not verified.
  • A vault mints once. A second call reverts with already minted.