drethereumquicknode example copy
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
-- forked from theericstone / quicknode example @ https://flipsidecrypto.xyz/theericstone/q/BfE083hh1HIr/quicknode-example
-- after registering your quicknode key with ephit...
SELECT
livequery.live.udf_api(
'POST',
'{myurl}',
{},
{ 'method' :'eth_blockNumber',
'params' :[],
'id' :1,
'jsonrpc' :'2.0' },
'quicknode'
) AS resp,
resp :data :result :: STRING AS toBlock,
ethereum.public.udf_hex_to_int(toBLock) as toBlock_N;
Run a query to Download Data