evm_upload_image_to_ipfs
Uploads an image from a URL or local file path to IPFS via Pinata, returning the IPFS hash, ipfs:// URI, and gateway URL for use in metadata.
Instructions
Upload image to IPFS and get back IPFS hash and URI.
Uploads image file to IPFS using Pinata. Supports both URLs and local file paths. Returns IPFS hash, URI, and gateway URL for the uploaded image.
CRITICAL RULES:
Requires PINATA_API_KEY in environment
One of imageUrl or imagePath required
Returns IPFS hash usable in metadata
PARAMETERS:
imageUrl: Image URL (optional)
imagePath: Local file path (optional)
ipfsApiKey: Override API key (optional)
EXAMPLES: ✅ Upload from URL: {imageUrl: "https://example.com/art.png"} ✅ Upload local file: {imagePath: "/Users/me/art.jpg"}
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: • ipfsHash: IPFS CID • uri: ipfs://... format • 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "evm_upload_image_to_ipfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrl | No | URL of image to upload | |
| imagePath | No | Local path to image file | |
| ipfsApiKey | No | API key for IPFS service (optional) |