vault.depositAndMint(DepositAndMint)
Deposit an array of RWA NFTs into the vault and mint the corresponding amount of security tokens.
DepositAndMint Type Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| vaultController | Signer | Required | Vault controller signer that owns the NFTs. Must be connected to a provider. |
| vault | string | Required | Vault address. |
| rwaNfts | string[] | Required | Addresses of the RWA NFT contracts (MNFT/CNFT). |
| tokenIds | string[] | Required | Token IDs of the NFTs to deposit. |
| amount | number | Required | Amount of security tokens to mint. |
Returns
| Field | Type | Description |
|---|---|---|
| status | deposited_and_minted | Status of the operation. |
| vault | string | Vault address. |
| controller | string | Vault controller address. |
| rwaNfts | string[] | NFT contract addresses provided. |
| tokenIds | string[] | Token IDs deposited. |
| amount | number | Amount of security tokens minted. |
| receipt | TransactionReceipt | Transaction receipt for the deposit and mint call. |
Usage
TypeScript
JavaScript
Example outputs
- Ensure the vault has been approved as operator for the provided NFTs by the
vaultController. - Ensure
rwaNftsandtokenIdsarrays align by index.

