How to pass parameters for multisignature addresses from Perl to the JSON::RPC::Client? I'm trying to create a multisig address with JSON::RPC::Client but I don't know how to pass the parameters. I can pass simple params such as in validateaddress that requires only &lt;bitcoinaddress&gt;. Working example:

$obj = { method  =&gt; 'validateaddress', params =&gt; ["$just_a_bit_address_in_string"],};
$res = $client-&gt;call($uri, $obj);


But when it comes to other types of parameters such as in createmultisig,  that the required params are &lt; nrequired &gt; &lt;'["key,"key"]'&gt;, I don't know to pass it to $obj. How do I do that?
The ["key,"key"] part of the documentation means that it expects an array.

You need to call it like this:

$obj = {method  =&gt; 'createmultisig', params =&gt; [2, ["$key1", "$key2"]],};
$res = $client-&gt;call($uri, $obj);