setNFTApprovalForAll
Enable or disable third-party operator access to all NFTs in a specific smart contract. Manage NFT permissions efficiently using contract address, operator address, and approval status.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
approved | Yes | ||
chainId | No | ||
contractAddress | Yes | ||
gasOptions | No | ||
operator | Yes | ||
provider | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"approved": {
"type": "boolean"
},
"chainId": {
"type": "number"
},
"contractAddress": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"gasOptions": {
"additionalProperties": false,
"properties": {
"gasLimit": {
"type": "number"
},
"gasPrice": {
"type": "number"
},
"maxFeePerGas": {
"type": "number"
},
"maxPriorityFeePerGas": {
"type": "number"
},
"nonce": {
"type": "number"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"operator": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"provider": {
"type": "string"
}
},
"required": [
"contractAddress",
"operator",
"approved"
],
"type": "object"
}