Skip to content

addmultisigaddress #19

@lorenzoasr

Description

@lorenzoasr

Hello, I have some difficult to get command "addmultisigaddress" working.

From help:
Examples:

Add a multisig address from 2 addresses

bitcoin-cli addmultisigaddress 2 "["16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5","171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV"]"

As json rpc call

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "["16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5","171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

I tried this:
$data = Array("firstAddress","secondAddress");
$client->query("addmultisigaddress",2,json_encode($data));

But in the response tcpdumped it says command is malformed, I tried in every way but I havn't success, can you help me?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions