./sidechain-cli <subcommand> <arguments...>
It is assumed that you have access to:
Description: Request funds for a sidechain recipient address.
./sidechain-cli request_funds
--sc-evm-url <SC_RPC_URL> \
--recipient <SC_ADDRESS>
Example:
./sidechain-cli request-funds
--sc-evm-url <SC_RPC_URL> \
--recipient ae3dffee97f92db0201d11cb8877c89738353bce
Description: Send SC_Token tokens from mainchain to sidechain recipient address.
./sidechain-cli burn-sc-token
--signing-key-file <PATH_TO_FILE>.skey \
--sc-evm-url <SC_RPC_URL>\
--recipient <SC_ADDRESS>\
--amount <INTEGER>
Example:
./sidechain-cli burn-sc-token
--signing-key-file payment.skey \
--sc-evm-url <SC_RPC_URL> \
--recipient ae3dffee97f92db0201d11cb8877c89738353bce \
--amount 10
Description: Search sidechain for transactions from mainchain to sidechain. Reads the chain backward and prints transaction that matches the filters.
./sidechain-cli search-incoming-txs
--from <START_BLOCK_NUM> \
--to <END_BLOCK_NUM> \
--sc-evm-url <SC_RPC_URL> \
--recipient <SC_ADDRESS> \ #optional recipient sidechain address
--utxo-id <MN_UTXO_ID> #optional mainchain tx ID
Example:
./sidechain-cli search_incoming_txs
--from 210000 \
--to 209500 \
--sc-evm-url <SC_RPC_URL>
Description: Claim SC_Token tokens that have been sent from sidechain to mainchain using obtained merkle proof.
./sidechain-cli claim-sc-token
--signing-key-file <PATH_TO_FILE> \
--sc-evm-url <SC_RPC_URL> \
--combined-proof <MERKLE_PROOF_BYTES>
Example:
./sidechain-cli claim-sc-token
--signing-key-file payment.skey \
--sc-evm-url <SC_RPC_URL> \
--combined-proof d8799fd8799f0101581d6045736b33c53d9f526a223086afd812b07ed9741da80e989e96998893d8799f5820772485d60f6744cf252f26560413aae8d28c82a88b1c77eede792f28965f4e79ffff9fd8799f005820ed69142610619b748ec5cd657e418c1c891c3a176900376d12db0b3c406a0a38ffffff
Description: Displays pending and queued transactions from mainchain to sidechain
./sidechain-cli pending-txs
--sc-evm-url <SC_RPC_URL> \
--recipient <SC_ADDRESS>