Skip to main content

createmultisig

Overview

The 'createmultisig' method creates a multi-signature address with n signature of m keys required.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 4303fb63-adec-42dc-b571-74bc2f2a5167' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"createmultisig","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • nrequired (numeric, required): The number of required signatures out of the n keys.
  • keys (json array, required): The hex-encoded public keys.
  • address_type (string, optional, default=legacy): The address type to use. Options are “legacy”, “p2sh-segwit”, and “bech32”.

Response