The Plasma CLI is used to interact with the OMG network from the command line. Technical details about Ethereum and Plasma are abstracted from the user.
Plasma CLI enables the user to:
- deposit ETH to the Plasma contract
- create send, split and merge transactions
- exit ETH from the OMG Network back to Ethereum
Connectivity to Ethereum via a local RPC node or Infura is supported.
ERC20 tokens are not currently supported.
This tool is compatible with version 0.1 of the OMG Network
plasma_cli
is available as binaries at https://github.com/omisego/plasma-cli/releases. Download the binary that matches your operating system.
After downloading the latest binary file (on macOS):
- rename the file
$ mv "name_of_your_binary_file" plasma_cli
- set execute permissions
$ chmod u+x ./plasma_cli
- run it
$ ./plasma_cli --help
plasma_cli create account
plasma_cli deposit --privatekey="private_key" --client="local_rpc_server_or_Infura_URL" --contract="contract_address" --amount=amount_in_wei --owner="owner_address"
plasma_cli get utxos --watcher="watcher_URL" --address="public_address"
plasma_cli get balance --watcher="watcher_URL" --address="public_address"
creates a send transaction from the balance of the privatekey to a recipient wallet (currently only support 1 recipient). Makes an ETH transaction by default
plasma_cli send --to="address" --privatekey="privatekey" --amount=amount --watcher="watcher_url"
optional arguements:
--currency="token_address"
--feetoken="token_address"
--feeamount=fee_amount
--metadata="hex_string"
plasma_cli exit --utxo=UTXO_position --privatekey="private_key" --contract="contract_address" --watcher="watcher_url" --client="local_rpc_server_or_Infura_URL"
plasma_cli challengeexit --contract="contract_address" --client="local_rpc_server_or_Infura_URL" --privatekey="private_key" --utxo="UTXO_position" --watcher="watcher_url"