evm_transfer_nft
Transfer ERC721 NFTs to another address with automatic ownership verification. Transaction fails if sender does not own the token.
Instructions
Transfer ERC721 NFT to another address with automatic ownership verification.
Executes safeTransferFrom on NFT contract. Verifies sender owns token before transfer. Recipient can be EOA or contract implementing IERC721Receiver. Transaction fails if not token owner.
CRITICAL RULES:
Must own the NFT being transferred
Requires gas in native token
Cannot transfer to zero address (0x0)
Recipient contract must implement IERC721Receiver
Approved operators can transfer on owner's behalf
Irreversible once confirmed
PARAMETERS:
chain: EVM chain to execute on (required)
Must have gas in native token
contractAddress: NFT collection address (required)
Must be valid ERC721 contract
Format: "0x..." (42 characters)
to: Recipient address (required)
Can be EOA or contract
Cannot be zero address
Format: "0x..." (42 characters)
tokenId: Token ID to transfer (required)
Must be owned by sender
Format: string (not number for large IDs)
privateKey: Owner's private key (required)
Must own the token OR be approved operator
Format: "0x..." (64 hex characters)
EXAMPLES: ✅ Transfer NFT #42 to collector: {chain: "polygon", contractAddress: "0x7227E4D7...", to: "0x742d35Cc...", tokenId: "42", privateKey: "0xac0974..."}
✅ Transfer rare NFT on Ethereum: {chain: "ethereum", contractAddress: "0xBC4CA0E...", to: "0x8626f6940...", tokenId: "8762", privateKey: "0xac0974..."}
❌ Invalid - not token owner: {chain: "polygon", contractAddress: "0x7227E4D7...", to: "0x742d35Cc...", tokenId: "100", privateKey: "0xwrongkey..."}
❌ Invalid - zero address recipient: {chain: "polygon", contractAddress: "0x7227E4D7...", to: "0x0000000000000000000000000000000000000000", tokenId: "42", privateKey: "0xac0974..."}
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: • success: Transfer confirmation • transactionHash: On-chain transaction hash • from: Previous owner address • to: New owner address • tokenId: Transferred token ID • gasUsed: Gas consumed in transaction
COMMON MISTAKES:
Not verifying ownership before transfer attempt
Transferring to contract without IERC721Receiver
Using wrong private key (not owner or approved)
Insufficient gas in wallet
Transferring to zero address
USE CASES:
Sell NFT to buyer after payment
Gift NFT to another wallet
Move NFT to cold storage
Transfer between own wallets
Execute marketplace sale
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>",
"to": "<to>",
"tokenId": "<tokenId>",
"privateKey": "<privateKey>"
},
"name": "evm_transfer_nft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient address (0x...) | |
| chain | Yes | EVM chain to execute on | |
| tokenId | Yes | Token ID to transfer | |
| privateKey | Yes | Owner private key (0x...) | |
| contractAddress | Yes | NFT contract address (0x...) |