TarifsGitHubTableau de bord

Bitcoin

createmultisig15 crédits

Creates a multi-signature address

Réseau: bitcoin

Paramètres

NomTypeDescription
nrequirednumberNumber of required signatures.
keysstring[]Hex-encoded public keys.
address_typestringAddress type: legacy (default), p2sh-segwit or bech32. (facultatif)

Valeur renvoyée

Type

Object

address, redeemScript (hex) and descriptor of the multisig.

Exemples de code

curl https://holy-burned-sky-bitcoin-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "createmultisig",
  "params": [
    2,
    [
      "03789ed0bb717d88f7d321a368d905e7430207ebbd82bd342cf11ae157a7ace5fd",
      "03dbc6764b8884a92e871274b87583e6d5c2a58819473e17e107ef3f6aa5a61626"
    ],
    "bech32"
  ]
}'