Author Topic: OK Tutorials - Command: addmultisigaddress  (Read 79 times)

okheymos

  • Administrator
  • Jr. Member
  • *
  • Posts: 62
  • Trust: 0
    • View Profile
OK Tutorials - Command: addmultisigaddress
« on: April 18, 2017, 05:19:40 PM »

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