evm_create_nft_metadata
Creates ERC721 NFT metadata JSON from an IPFS image URI, uploads it to IPFS, and returns the metadata URI needed for minting.
Instructions
Create NFT metadata JSON and upload to IPFS.
Creates ERC721 metadata JSON with image reference, uploads to IPFS. Use after uploading image with evm_upload_image_to_ipfs. Returns metadata URI for minting.
CRITICAL RULES:
Requires PINATA_API_KEY in environment
imageUri must be ipfs:// format
Returns metadata URI for minting
PARAMETERS:
name: NFT name (required)
description: NFT description (required)
imageUri: Image IPFS URI (required)
Format: "ipfs://QmHash..."
attributes: Traits (optional)
external_url: External link (optional)
ipfsApiKey: Override API key (optional)
EXAMPLES: ✅ Create metadata: {name: "My NFT", description: "Cool art", imageUri: "ipfs://QmABC123..."}
✅ With attributes: {name: "Rare NFT", description: "Limited", imageUri: "ipfs://QmABC...", attributes: [{"trait_type": "Rarity", "value": "Epic"}]}
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: • metadata: Full metadata object • ipfsHash: Metadata IPFS CID • uri: ipfs://... (use for minting) • gatewayUrl: Public URL
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": {
"name": "<name>",
"description": "<description>",
"imageUri": "<imageUri>"
},
"name": "evm_create_nft_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | NFT name | |
| imageUri | Yes | IPFS URI of the image (ipfs://...) | |
| attributes | No | NFT attributes/traits | |
| ipfsApiKey | No | API key for IPFS service (optional) | |
| description | Yes | NFT description | |
| external_url | No | External URL for the NFT |