Ethereum
The robomotion ethereum CLI connects to the Ethereum blockchain for Web3 operations. It checks ETH and ERC-20 balances, sends transactions, deploys and calls smart contracts, resolves ENS names, estimates gas, watches events, and monitors blocks.
When to use
- Check ETH or ERC-20 token balances for wallet addresses
- Send ETH transactions or call smart contract methods
- Deploy smart contracts and interact with existing ones
- Resolve ENS names, estimate gas, and watch blockchain events
Prerequisites
robomotionCLI installed- Package installed:
robomotion install ethereum - Ethereum RPC endpoint (Infura, Alchemy, etc.) configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install ethereum - Connect with session:
robomotion ethereum eth_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion ethereum eth_get_balance --client-id "<client-id>" --address <addr> --session-id "<session-id>" --output json - Disconnect when done:
robomotion ethereum eth_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion ethereum ethereum_abi_method --abi --abi-method --args --output jsonEncode a smart contract method call using ABIrobomotion ethereum ethereum_get_balance --client-id --wallet [--4] --session-id "<session-id>" --output jsonGet the balance of a wallet address on the blockchainrobomotion ethereum ethereum_call --client-id --trx-id --wallet --contract --session-id "<session-id>" --output jsonCall a smart contract method without sending a transaction (read-only)robomotion ethereum ethereum_cancel_transaction --client-id --hash --gas-price --gas --session-id "<session-id>" --output jsonCancel a pending transaction by sending a replacement with zero valuerobomotion ethereum ethereum_create_client --rpc-url --chain-id --output jsonCreate a Ethereum client connection to a blockchain RPC endpointrobomotion ethereum ethereum_decode --abi --abi-method --data [--input/output] --output jsonDecode transaction input or output data using ABIrobomotion ethereum ethereum_estimate_gas --client-id --trx-id --wallet --to --value --session-id "<session-id>" --output jsonEstimate the gas required for a transactionrobomotion ethereum ethereum_estimate_gas_price --client-id --session-id "<session-id>" --output jsonGet the current gas price from the blockchain networkrobomotion ethereum ethereum_export_wallet --keystore-file --output jsonExport a wallet to a keystore filerobomotion ethereum ethereum_from_wei --amount [--unit] [--4] --output jsonConvert amount from WEI or GWEI to ETHrobomotion ethereum ethereum_generate_wallet --output jsonGenerate a new cryptocurrency wallet with encrypted private keyrobomotion ethereum ethereum_get_transaction --client-id --hash --session-id "<session-id>" --output jsonGet transaction details by hashrobomotion ethereum ethereum_get_wallet_address --output jsonGet wallet address from encrypted private keyrobomotion ethereum ethereum_import_wallet --keystore-file --output jsonImport a wallet from a keystore filerobomotion ethereum ethereum_increase_gas --client-id --hash --gas-price --gas --session-id "<session-id>" --output jsonIncrease gas price of a pending transaction to speed it uprobomotion ethereum ethereum_parse_abi --abi-file --output jsonParse a smart contract ABI file for use with other Ethereum nodesrobomotion ethereum ethereum_pending_transactions --client-id --new-pending-transactions [--abi] [--methods] [--to] [--http-provider-url] --session-id "<session-id>" --output jsonSubscribe to pending transactions on the blockchainrobomotion ethereum ethereum_send_transaction --client-id --trx-id --to --gas-price --gas --value --nonce --session-id "<session-id>" --output jsonSign and send a transaction to the blockchainrobomotion ethereum ethereum_subscribe --client-id --contract --abi --event-name --params --session-id "<session-id>" --output jsonSubscribe to blockchain events from a smart contractrobomotion ethereum ethereum_to_wei --amount [--unit] --output jsonConvert amount from ETH to WEI or GWEIrobomotion ethereum ethereum_transaction_receipt --client-id --hash --session-id "<session-id>" --output jsonGet transaction receipt by hashrobomotion ethereum ethereum_transfer --wallet --to --amount --output jsonCreate a transfer transaction to send cryptocurrency to another address
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)