Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addmultisigaddress #19

Open
lorenzoasr opened this issue May 30, 2014 · 0 comments
Open

addmultisigaddress #19

lorenzoasr opened this issue May 30, 2014 · 0 comments

Comments

@lorenzoasr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants