mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 11:26:53 +00:00
* init evm testnet models * upd sources.yml * fix _missing_receipts ref * set min block * upd dev streamline resources * gha and rename schema to jut testnet * fix refs * fix refs 2 * tests * rm space --------- Co-authored-by: Austin <austin@flipsidecrypto.com>
28 lines
647 B
SQL
28 lines
647 B
SQL
{{ config (
|
|
materialized = 'table',
|
|
tags = ['streamline_realtime_evm_testnet']
|
|
) }}
|
|
|
|
SELECT
|
|
live.udf_api(
|
|
'POST',
|
|
'{Service}/{Authentication}',
|
|
OBJECT_CONSTRUCT(
|
|
'Content-Type', 'application/json',
|
|
'fsc-quantum-state', 'LiveQuery'
|
|
),
|
|
OBJECT_CONSTRUCT(
|
|
'id',
|
|
0,
|
|
'jsonrpc',
|
|
'2.0',
|
|
'method',
|
|
'eth_blockNumber',
|
|
'params',
|
|
[]
|
|
),
|
|
'Vault/prod/flow/quicknode/testnet'
|
|
) AS resp,
|
|
utils.udf_hex_to_int(
|
|
resp :data :result :: STRING
|
|
) AS block_number |