mcd
package:~/sethrc
initialisation file.mcd
also supports transaction signing with Ledger hardware wallets and can run against both local and remote nodes.mcd
will always be used against a known deployment of the system, defaults can be loaded wherever possible. In most cases the only required configuration parameter is the -C, --chain=<chain>
(MCD_CHAIN
) option and -F, --from=<address>
(ETH_FROM
) sender account when not using a testnet.~/.sethrc
:-C, --chain
option to kovan
. Specify a sender account when sending transactions using the -F, --from
option, or via the ETH_FROM
env variable.-C, --chain
option to the remote testchain Id. Mcd will auto-configure account settings via the testchain api so that no further configuration is required. To view a list of available testchains run:C, --chain
option to testnet
. Mcd will auto-configure account testings for dapp testnet
so that no further configuration is required.~/.dapp/testnet/8545/config/addresses.json
. Configuration addresses can be loaded from a different location by setting the --config
(MCD_CONFIG
) option.ilks
command to view the list off available Ilks.ilk
command. The I, --ilk=<id>
option is used to scope commands to a particular Ilk:ilk
command:gem [<subcommand>]
to manage collateral balances for any given Ilk.join
command can add collateral from the sender account to any specified Urn. The exit
command can remove collateral from a specified Urn, provided that the sender controls the private key associated with that Urn.ETH_FROM
is used to determine which Urn should be credited with collateral. Use U, --urn=<address>
to optionally credit an Urn other than the default.exit
command can remove collateral from a specified Urn, provided that the sender controls the private key associated with that Urn. The exit
command can also withdraw collateral to an account other than ETH_FROM
buy passing the destination address as an additional argument:urn
command to view Urn state for any given Ilk:ETH_FROM
is used to determine which Urn to query. Use the U, --urn=<address>
option to query Urns at other indexes.urn.ink
and urn.art
) is managed via the frob <dink> <dart>
command, where dink
and dart
are delta amounts by which ink
(Locked collateral) and art
(Outstanding debt) should be changed. For example, to lock 100 WETH and draw 400 Dai on the ETH-A Ilk:dai [<subcommand>]
to manage dai balances.dai exit
. Dai can be returned to repay Urn debt via dai join
.dai balance
command displays the internal system (vat) balance and the external (ext) token balance:vat
or ext
as an argument to the balance
command:cdp
command provides compatability with CDPs managed via the CDP Portal and uses the same proxy contract and Cdp Manager font-end. This allows CDPs to be managed via a unique integer identifier rather than the I, --ilk
and U, --urn
options.ETH_FROM
is set to an address controlled by the user, and that the MCD_CHAIN
env variable has been set to a vaild chain identifier.wrap
and unwrap
commands are provided for exchanging ETH to WETH and visa versa.