bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/addmultisigaddress
Wallet

addmultisigaddress

Add an nrequired-to-sign multisignature address to the wallet. Each key is a bitcoin address or hex-encoded public key.

Parameters

nrequirednumberREQUIRED
The number of required signatures
keysarrayREQUIRED
Array of bitcoin addresses or hex-encoded public keys
labelstringoptional
A label to assign. Default: ""
address_typestringoptional
"legacy", "p2sh-segwit", or "bech32"

Returns

objectObject with address and redeemScript

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"addmultisigaddress","params":[2,["key1","key2"]]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "address": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy",
  "redeemScript": "522103...52ae",
  "descriptor": "sh(multi(2,...))"
}
← Previous
unloadwallet
Next →
backupwallet

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗