addmultisigaddress - Okcash RPC

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

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

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.

"address"         (string) A Okcash address associated with the keys.


Add a multisig address from 2 addresses
> okcashd addmultisigaddress 2 "[\"PFenePkaLR13uAttTPGtZRuNqyvUbU9tFz\",\"PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg\"]"

As json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"PFenePkaLR13uAttTPGtZRuNqyvUbU9tFz\",\"PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg\"]"] }' -H 'content-type: text/plain;'

Okcash Core RPC documentation.

Okcash version:

OK RPC docs at:Github