Skip to main content

addmultisigaddress

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

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

# Add a multisig address from 2 addresses
yerbas-cli addmultisigaddress 2 "[\"Xt4qk9uKvQYAonVGSZNXqxeDmtjaEWgfrS\",\"XoSoWQkpgLpppPoyyzbUFh1fq2RBvW6UK2\"]"

Arguments

ArgumentTypeDescription
nrequired(number)The number of required signatures out of the n keys or
"keys"(string)A json array of yerbas addresses or hex-encoded public keys
"account"(string)DEPRECATED. An account to assign the addresses to.
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 yerbas addresses or hex-encoded public keys
[
"address" (string) yerbas address or hex-encoded public key
...,
]
3. "account" (string, optional) DEPRECATED. An account to assign the addresses to.

Output

ResultTypeDescription
"address"(string)A yerbas address associated with the keys.

Result:
"address" (string) A yerbas address associated with the keys.

Examples

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"Xt4qk9uKvQYAonVGSZNXqxeDmtjaEWgfrS\",\"XoSoWQkpgLpppPoyyzbUFh1fq2RBvW6UK2\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/