* New! Latest stable version of OK wallet v7-SpaceMonkey *

OK Tutorials - Command: addmultisigaddress

Started by okheymos, April 18, 2017, 05:19:40 PM

Previous topic - Next topic

okheymos


Command: addmultisigaddress


addmultisigaddress nrequired ["key",...] ( "account" )

Add a nrequired-to-sign multisignature address to the wallet.
Each key is a Okcash address or hex-encoded public key.
If 'account' is specified (DEPRECATED), assign address to that account.

Arguments:
1. nrequired        (numeric, required) The number of required signatures out of the n keys or addresses.
2. "keys"         (string, required) A json array of okcash addresses or hex-encoded public keys
     [
       "address"  (string) okcash address or hex-encoded public key
       ...,
     ]
3. "account"      (string, optional) DEPRECATED. An account to assign the addresses to.

Result:
"address"         (string) An okcash address associated with the keys.

Examples:

Add a multisig address from 2 addresses
> okcashd addmultisigaddress 2 "[\"P16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"P171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"