vault.nftApproval(NftApproval)
Approve a Vault as operator for specific Machine/Contract NFT token IDs by calling approve per token. This sends transactions from the NFT owner/controller.
NftApproval Type Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| machineController | Signer | Required | Owner/controller signer that grants approvals. Must be connected to a provider. |
| nft | string | Required | Machine NFT or Contract NFT contract address. |
| vault | string | Required | Vault address to approve as operator. |
| tokenIds | string[] | Required | Token IDs to approve. |
Returns
| Field | Type | Description |
|---|---|---|
| status | approved | Status of the operation. |
| nft | string | NFT contract address. |
| vault | string | Vault address approved for the token IDs. |
| newlyApprovedTokenIds | string[] | Token IDs approved in this call. |
| receipts | TransactionReceipt[] | Transaction receipts (one per token ID). |
Usage
TypeScript
JavaScript
Example outputs
- This approves specific token IDs (not
setApprovalForAll). - For Contract NFTs, pass the Contract NFT address and its token IDs.

