Loading

rpc_call

Scalar function

Issues a JSON-RPC request using the provided transport configuration and returns the raw result.

rpc_call(TRANSPORT, VARCHAR, JSON)

Parameters

NameType
transportTRANSPORT
methodVARCHAR
paramsJSON

Returns

NameType
resultJSON
1
-- Fetch the current gas price via eth_gasPrice
2
SELECT rpc_call(
3
$transport,
4
'eth_gasPrice',
5
'[]'::JSON
6
) AS response;
Notebook ready in readonly mode.