get_owners_for_nft
Retrieve current owners of a specific NFT by providing its contract address and token ID, with pagination support for large owner lists.
Instructions
Get owners of a specific NFT
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractAddress": "<contractAddress>",
"tokenId": "<tokenId>"
},
"name": "get_owners_for_nft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contractAddress | Yes | The contract address of the NFT | |
| tokenId | Yes | The token ID of the NFT | |
| pageKey | No | Key for pagination | |
| pageSize | No | Number of results per page |
Implementation Reference
- index.ts:565-589 (registration)Tool registration including name, description, and input schema definition for get_owners_for_nft
{ name: "get_owners_for_nft", description: "Get owners of a specific NFT", inputSchema: { type: "object", properties: { contractAddress: { type: "string", description: "The contract address of the NFT", }, tokenId: { type: "string", description: "The token ID of the NFT", }, pageKey: { type: "string", description: "Key for pagination", }, pageSize: { type: "number", description: "Number of results per page", }, }, required: ["contractAddress", "tokenId"], }, - index.ts:69-72 (schema)TypeScript type definition for parameters of get_owners_for_nft
type GetOwnersForNftParams = GetOwnersForNftOptions & { contractAddress: string; tokenId: string; }; - index.ts:201-212 (helper)Parameter validation helper function for get_owners_for_nft tool
const isValidGetOwnersForNftParams = ( args: any ): args is GetOwnersForNftParams => { return ( typeof args === "object" && args !== null && typeof args.contractAddress === "string" && typeof args.tokenId === "string" && (args.pageKey === undefined || typeof args.pageKey === "string") && (args.pageSize === undefined || typeof args.pageSize === "number") ); };