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

Name Type
transport TRANSPORT
method VARCHAR
params JSON

Returns

Name Type
result JSON
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.