web3cli

Developer Tools

web3cli is the Swiss-army knife of the blockchain, enabling developers to interact with different blockchains and smart contracts using the command line!

What is web3cli?

web3cli is a powerful command-line interface tool designed for interacting with Ethereum and Ethereum Virtual Machine (EVM)-compatible blockchains. It allows users to manage smart contracts, perform transactions, and interact with blockchain data directly from their terminal, bypassing the need for complex coding or relying on front-end interfaces. This tool is ideal for developers, crypto traders, and blockchain enthusiasts who prefer a streamlined and efficient way to interact with blockchain technologies.

Key Features of web3cli

Interact with Blockchains Easily

  • web3cli simplifies the process of interacting with various blockchains through straightforward command-line commands. Users can execute transactions, query smart contract data, and manage blockchain interactions without the need for a graphical user interface.
  • Benefit: This feature enhances efficiency and allows for automation and scripting of blockchain interactions, making it easier to integrate blockchain operations into existing workflows.

Comprehensive Smart Contract Support

  • The tool comes pre-loaded with popular smart contracts and provides functionalities such as listing contracts, adding custom contracts, and interacting with them through predefined commands.
  • Benefit: This feature makes it simple for users to deploy, interact with, and manage various smart contracts without the need to write custom code, saving time and reducing the likelihood of errors.

Multi-Chain and Custom RPC Support

  • web3cli supports multiple chains out-of-the-box and allows users to easily switch between them or add new ones. It also supports custom RPC configurations to connect with private or specific blockchain nodes.
  • Benefit: Flexibility in choosing different blockchains and nodes enhances the user's ability to work in different blockchain environments and ensures higher reliability and control over connections.

How to Use web3cli

Step 1: Install the tool.

  • Ensure you have Python 3.9 or newer installed. Use the command pip3 install -U web3cli for installation, or pipx install web3cli for an isolated environment.

Step 2: Perform basic operations.

  • Query the balance of an Ethereum address using w3 balance [address]. Tag addresses for easier recall and use these tags in commands to streamline operations.

Step 3: Advanced operations.

  • Engage in more complex tasks like smart contract interactions or token swaps using commands like w3 transact [contract] [function] [parameters].

Using web3cli not only streamlines your blockchain interactions but also opens up possibilities for advanced blockchain analytics and operations, directly from your command line. This tool is a valuable asset for anyone looking to enhance their efficiency in managing digital assets or integrating blockchain technology into their software solutions.

Supported Chains

polygon-zkevm-mainnet
scroll-mainnet
linea-mainnet
arbitrum-mainnet
klaytn-mainnet
matic-mainnet
taiko-mainnet
flarenetworks-flare-mainnet
telos-mainnet
arbitrum-nova-mainnet
blast-mainnet
gnosis-mainnet
rollux-mainnet
bsc-mainnet
mantle-mainnet
avalanche-mainnet
celo-mainnet
harmony-mainnet
metis-mainnet
xai-mainnet
heco-mainnet
moonbeam-mainnet
horizen-eon-mainnet
solana-mainnet
base-mainnet
eth-mainnet
iotex-mainnet
zksync-mainnet
optimism-mainnet
btc-mainnet
fantom-mainnet
defi-kingdoms-mainnet
boba-mainnet
evmos-mainnet
eth-goerli
eth-holesky
meter-mainnet
moonbeam-moonriver
oasys-mainnet
palm-mainnet
astar-mainnet
cronos-mainnet
aurora-mainnet
avalanche-meld-mainnet
skale-calypso
zetachain-mainnet
eth-sepolia
arbitrum-sepolia
base-sepolia-testnet
boba-bnb-mainnet
boba-bnb-testnet
mode-mainnet
optimism-sepolia
matic-mumbai
avalanche-testnet
bsc-testnet
fantom-testnet
mantle-sepolia-testnet
moonbeam-moonbase-alpha
rsk-mainnet
rsk-testnet
zora-mainnet
zora-sepolia-testnet

Get started with GoldRush

GoldRush is a set of data tools that enable easy web3 development across 200+ blockchains.