public function prepareRequest($method, array $params = [])
    {
        $request = [
            'jsonrpc' => '2.0',
            'method'  => $method,
            'id'      => mt_rand()
        ];

        $request['params'] = $params ? $params : [];

        /*$request['params'] = array_merge($request['params'], $this->params);*/
        return $request;
    }
public function prepareRequest($method, array $params = [])
    {
        $request = [
            'jsonrpc' => '2.0',
            'method'  => $method,
            'id'      => mt_rand()
        ];

        $request['params'] = $params ? $params : [];

        /*$request['params'] = array_merge($request['params'], $this->params);*/
        return $request;
    }
public function prepareRequest ( $ method , array $ params = [ ] ) { $ request = [ 'jsonrpc' => '2.0' , 'method' => $ method , 'id' => mt_rand ( ) ] ; $ request [ 'params' ] = $ params ? $ params : [ ] ; /*$request['params'] = array_merge($request['params'], $this->params);*/ return $ request ; }
prepare a json rpc request array

@param $method
@param array $params
@return array
prepare a json rpc request array