evm_create_nft_with_ipfs
Upload an image and ERC721 metadata to IPFS, then return the metadata URI ready for minting. Prepares complete NFT assets for on-chain minting.
Instructions
Create complete NFT with automatic IPFS upload for image and metadata.
End-to-end NFT asset creation: uploads image to IPFS, creates ERC721 metadata JSON with image reference, uploads metadata to IPFS. Returns metadata URI ready for minting with evm_mint_nft.
CRITICAL RULES:
Requires PINATA_API_KEY in environment
Uploads image first, then metadata
Returns metadata URI for minting
Does NOT mint on-chain (use evm_mint_nft after)
Image can be URL or local path
PARAMETERS:
imageUrl: Image URL to upload (optional)
HTTP/HTTPS URL to image file
Mutually exclusive with imagePath
imagePath: Local image path (optional)
Absolute path to local image file
Mutually exclusive with imageUrl
name: NFT name (required)
Display name for the NFT
description: NFT description (required)
Detailed description of the NFT
attributes: NFT traits (optional)
Array of {trait_type, value} objects
Standard ERC721 metadata format
external_url: External URL (optional)
Link to external website
ipfsApiKey: IPFS API key (optional)
Overrides PINATA_API_KEY env var
EXAMPLES: ✅ Create from URL: {imageUrl: "https://example.com/art.png", name: "Cool NFT", description: "My first NFT"}
✅ Create from local file: {imagePath: "/Users/me/art.jpg", name: "Local Art", description: "Uploaded from disk"}
✅ With attributes: {imageUrl: "https://example.com/art.png", name: "Rare NFT", description: "Limited edition", attributes: [{"trait_type": "Rarity", "value": "Legendary"}]}
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: • image.ipfsHash: Image IPFS CID • image.uri: ipfs://... URI • image.gatewayUrl: Public IPFS gateway URL • metadata.ipfsHash: Metadata IPFS CID • metadata.uri: ipfs://... URI (use this for minting!) • metadata.gatewayUrl: Public metadata URL
COMMON MISTAKES:
Not setting PINATA_API_KEY environment variable
Trying to provide both imageUrl and imagePath
Using metadata URI instead of just the hash
Forgetting to mint after creating assets
USE CASES:
Complete NFT creation workflow
Prepare NFT for minting
Upload art with metadata
Create NFT collection assets
Automated NFT generation
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>"
},
"name": "evm_create_nft_with_ipfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | NFT name | |
| imageUrl | No | URL of image to upload to IPFS | |
| imagePath | No | Local path to image file | |
| 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 |