bitcoind.app
CommandsGuidesContact ↗
Home/Util/createmultisig
Util

createmultisig

Creates a multi-signature address with n signature of m keys required.

Parameters

nrequirednumberREQUIRED
Number of required signatures
keysarrayREQUIRED
Array of hex-encoded public keys
address_typestringoptional
"legacy", "p2sh-segwit", or "bech32". Default: "legacy"

Returns

objectObject with address and redeemScript

Code Examples

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

Example Response

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

More Util Commands

deriveaddressesestimatesmartfeegetdescriptorinfogetindexinfosignmessagewithprivkeyvalidateaddress

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗