Examples:
# List available assets:
$ mmgen-swaptxcreate -S
# Create a Tether-to-LTC swap transaction for autosigning, connecting to the
# swap quote server via Tor:
$ mmgen-swaptxcreate --autosign --proxy=localhost:9050 ETH.USDT 1000 LTC
# After signing, send the transaction via public Etherscan proxy over Tor:
$ mmgen-txsend --autosign --quiet --tx-proxy=etherscan --proxy=localhost:9050
# After sending, check the transaction status and receipt:
$ mmgen-txsend --autosign --verbose --status
# Create a Tether-to-DAI swap transaction, with explicit destination account:
$ mmgen-swaptxcreate ETH.USDT 1000 ETH.DAI E:01234ABC:3
Testing:
$ test/cmdtest.py -e ethswap
Only native ETH supported for now. Work on ERC20 token swaps is underway.
Sample create-sign-send workflow for a BTC->ETH swap (assumes offline
autosigning is set up):
$ mmgen-swaptxcreate --autosign BTC 0.12345 ETH
remove device - insert - wait for signing - remove - insert
$ mmgen-txsend --autosign
Create step for ETH->BTC swap:
$ mmgen-swaptxcreate --autosign ETH 5.4321 BTC
For more information, see:
$ mmgen-swaptxcreate --help
Testing:
$ test/cmdtest.py ethswap