mirror of
https://github.com/FlipsideCrypto/sei-models.git
synced 2026-02-06 15:21:52 +00:00
fix block (#135)
This commit is contained in:
parent
7f2e2a3de8
commit
a58cae99f0
@ -20,7 +20,7 @@ WHERE
|
||||
SELECT
|
||||
MAX(block_number)
|
||||
FROM
|
||||
{{ ref('streamline__chainhead') }}
|
||||
{{ ref('streamline__evm_chainhead') }}
|
||||
)
|
||||
AND _id >= 79123881
|
||||
ORDER BY
|
||||
|
||||
28
models/evm/streamline/silver/streamline__evm_chainhead.sql
Normal file
28
models/evm/streamline/silver/streamline__evm_chainhead.sql
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user