evm_get_transaction
Retrieve transaction details including status, gas used, receipt, logs, and confirmation data by chain and hash to verify success, debug failures, and analyze gas costs.
Instructions
Get transaction details including status, gas used, receipt, and execution results.
Retrieves comprehensive transaction information from the blockchain, including confirmation status, gas usage, block inclusion, and any emitted events or logs.
CRITICAL RULES:
Transaction hash MUST be a valid 0x-prefixed hex string (66 characters: 0x + 64 hex digits)
Transaction must exist on the specified chain (returns null if not found)
Pending transactions show null block number and confirmation count
Failed transactions are included (check status field)
PARAMETERS:
chain: EVM chain to query (required)
Must match one of the 7 supported chains
Transaction hashes are chain-specific
Same hash on different chains refers to different transactions
txHash: Transaction hash to retrieve (required)
Format: 0x followed by 64 hexadecimal characters
Case-insensitive
Example: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
EXAMPLES: ✅ Get confirmed transaction: {chain: "polygon", txHash: "0x1234...abcd"}
✅ Check pending transaction: {chain: "ethereum", txHash: "0xabcd...1234"}
✅ Analyze failed transaction: {chain: "bsc", txHash: "0x9876...fedc"}
❌ Invalid - wrong hash length: {chain: "polygon", txHash: "0x1234"}
❌ Invalid - missing 0x prefix: {chain: "ethereum", txHash: "1234567890abcdef..."}
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: Boolean indicating operation success • transaction: Object with transaction details
hash: Transaction hash
from: Sender address
to: Recipient address (null for contract creation)
value: Amount transferred in wei
gasPrice/maxFeePerGas: Gas pricing (EIP-1559 or legacy)
gasUsed: Actual gas consumed
blockNumber: Block inclusion (null if pending)
status: 1 (success) or 0 (failed)
logs: Array of emitted events • executionTime: Time taken in milliseconds
COMMON MISTAKES:
Using transaction hash from wrong chain
Forgetting 0x prefix on hash
Not checking status field (assuming all transactions succeeded)
Expecting instant confirmation (some chains take time)
USE CASES:
Verify transaction succeeded before proceeding
Check gas costs for transaction types
Debug failed transactions via logs
Monitor transaction confirmation status
Analyze contract event emissions
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>",
"txHash": "<txHash>"
},
"name": "evm_get_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM chain to query | |
| txHash | Yes | Transaction hash (0x... - 66 characters) |