Bitcoin RPC RegTest not validating addresses I am attempting to use Bitcoin RPC in regtest mode, however, when I try to validate a bitcoin address with the following function

public function validateAddress($address)
{
    $command = new \Nbobtc\Command\Command('validateaddress', [$address]);
    $response = $this-&gt;client-&gt;sendCommand($command);
    $contents = $response-&gt;getBody()-&gt;getContents();

    return $contents;
}


it returns...

Array ( [result] =&gt; Array ( [isvalid] =&gt; ) [error] =&gt; [id] =&gt; )


Any ideas why the isvalid value is missing?

I could have sworn this was working a day or two ago...
You may be trying to validate a mainnet address on a testnet/regtest client.

For the benefit of others:

&lt;?php

require '/tmp/vendor/autoload.php';

$command = new \Nbobtc\Command\Command('getinfo');
$client  = new \Nbobtc\Http\Client('http://username:password@localhost:18332');

# legacy testnet address
#$address = "mvM368BXwRNx4HcYdL8XbU8hAX274gMKcq";
# bech32 address
#$address = "2Mzm5MPhGWTxNcZPGfpW7URR4mASKzsCZ3k";
# mainnet address
$address = "1KJFgSXpPvUthy3a7NxyM66szTkqHabpYB";

$command = new \Nbobtc\Command\Command('validateaddress', [$address]);
$response = $client-&gt;sendCommand($command);
$contents = $response-&gt;getBody()-&gt;getContents();

echo $contents;
?&gt;


I observe that bitcoin 0.18.1 will return as OP describes when attempting to validate a mainnet address on a testnet/regtest client, and return correct details otherwise.

If not, could you edit in to your question the actual address and the bitcoin.conf you're using.

Edit: I notice there IS a difference. I'm getting 
{"result":{"isvalid":false},"error":null,"id":null}
vs OP getting
Array ( [result] =&gt; Array ( [isvalid] =&gt; ) [error] =&gt; [id] =&gt; )
Perhaps there is some post-processing you're doing to $contents that is losing the value?