for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ZenCash\Rpc\Command\Util;
use ZenCash\Rpc\Command;
final class ZValidateAddress implements Command
{
private const METHOD = 'z_validateaddress';
private $zAddress;
public function __construct(string $zAddress)
$this->zAddress = $zAddress;
}
public function jsonSerialize(): object
return (object) [
'jsonrpc' => Command::JSON_RPC_VERSION,
'id' => Command::ID,
'method' => self::METHOD,
'params' => [ $this->zAddress ]
];