July 16, 2019, 04:11:10 pm

News:

Latest stable version of OKCash Core: 4.0.0.7 *new!


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\"]"