approveNFT
Authorize third-party access to specific NFTs by defining contract details, token ID, and approved address. Facilitates secure NFT management and transfers on Ethereum networks via MCP Ethers Wallet.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
approved | Yes | ||
chainId | No | ||
contractAddress | Yes | ||
gasOptions | No | ||
provider | No | ||
tokenId | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"approved": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"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"
},
"provider": {
"type": "string"
},
"tokenId": {
"type": [
"string",
"number"
]
}
},
"required": [
"contractAddress",
"tokenId",
"approved"
],
"type": "object"
}