evm_get_nft_owner
Retrieves the current owner address of a minted ERC721 token by querying ownerOf on a specified EVM chain. Use it to verify NFT ownership before transfers or marketplace actions.
Instructions
Get current owner address of specific ERC721 token.
Queries ownerOf function on NFT contract. Returns current owner's address. Fails if token doesn't exist or hasn't been minted. Read-only operation with no gas cost.
CRITICAL RULES:
Token must be minted
Read-only operation (no gas cost)
Returns current owner only
Ownership changes after transfers
Reverts if token doesn't exist
PARAMETERS:
chain: EVM chain to query (required)
Must support ERC721 standard
contractAddress: NFT collection address (required)
Must be valid ERC721 contract
Format: "0x..." (42 characters)
tokenId: Token ID to query (required)
Must be minted token
Format: string (not number for large IDs)
EXAMPLES: ✅ Check owner of NFT #123: {chain: "polygon", contractAddress: "0x7227E4D7...", tokenId: "123"}
✅ Verify ownership of rare token: {chain: "ethereum", contractAddress: "0xBC4CA0E...", tokenId: "8762"}
❌ Invalid - non-existent token: {chain: "polygon", contractAddress: "0x7227E4D7...", tokenId: "999999999"}
SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559
CRITICAL GAS CONSIDERATIONS:
Ethereum: High gas costs, use gas oracle for timing
Polygon/BSC: Very low gas, safe for frequent transactions
Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum
Avalanche: Dynamic fees, can spike during congestion
Always check gas price before executing transactions
TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.
OUTPUT STRUCTURE: • owner: Current owner address • tokenId: Queried token ID • collection: Contract address
COMMON MISTAKES:
Querying unminted tokens
Not handling revert for non-existent IDs
Caching owner without checking for transfers
Assuming token exists in collection
USE CASES:
Verify ownership before operations
Display current holder in marketplace
Validate ownership claims
Track NFT provenance
Check if address owns specific token
Running on Linux.
LINUX-SPECIFIC NOTES:
Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)
Python 3 is typically 'python3' command
GNU tools are standard
Use 'xdg-open' command to open files/applications
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": {
"chain": "<chain>",
"contractAddress": "<contractAddress>",
"tokenId": "<tokenId>"
},
"name": "evm_get_nft_owner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM chain to query | |
| tokenId | Yes | Token ID to query | |
| contractAddress | Yes | NFT contract address (0x...) |