zksync-cli wallet

Manage your wallet on ZKsync using zksync-cli.
zksync-cli wallet [sub-command] [options]

Description

This command allows you to interact with a wallet. You can review your balance of ETH or ERC20 token as well as transfer ETH and ERC20 tokens between L2 addresses.

balance

zksync-cli wallet balance [options]
--chainrequired
chain id

The ID of the chain to create the transaction on.

--addressrequired
0x address

The address to check the balance of.

--token
0x address

The address of the ETH or ERC20 token.

--rpc
string

Override the defined L2 RPC URL for the selected chain.

transfer

zksync-cli wallet transfer [options]
--amountrequired
string

The amount in base decimal unit format. Example: "0.1" -> 0.1 ETH

--chainrequired
chain id

The ID of the chain to create the transaction on.

--addressrequired
0x address

The address to check the balance of.

--token
0x address

The address of the ETH or ERC20 token.

--rpc
string

Override the defined L2 RPC URL for the selected chain.


Made with ❤️ by the ZKsync Community