fix block (#135)

This commit is contained in:
Austin 2025-09-03 12:35:32 -04:00 committed by GitHub
parent 7f2e2a3de8
commit a58cae99f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 29 additions and 1 deletions

View File

@ -20,7 +20,7 @@ WHERE
SELECT
MAX(block_number)
FROM
{{ ref('streamline__chainhead') }}
{{ ref('streamline__evm_chainhead') }}
)
AND _id >= 79123881
ORDER BY

View File

@ -0,0 +1,28 @@
{{ config (
materialized = 'table',
tags = ['streamline_core_evm_complete']
) }}
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/sei/quicknode/mainnet'
) AS resp,
utils.udf_hex_to_int(
resp :data :result :: STRING
)::INT - 500 AS block_number