Bitcoin m-of-n P2WSH multisig address (dev tool)
multisig_addressBitcoin m-of-n P2WSH multisig (wsh(multi(..)), unsorted) from compressed PUBLIC keys: threshold + pubkeys (hex, order is consensus-significant) + network (bitcoin default, testnet, signet, regtest). Returns address, witness_script and descriptor. Pure, offline computation (blocktools); nothing is fetched or stored. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"threshold": "<threshold>",
"pubkeys": "<pubkeys>"
},
"name": "multisig_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | ||
| pubkeys | Yes | Public keys in order (order is consensus-significant) | |
| threshold | Yes |