Tx_fee and Docs changes (#2)

This commit is contained in:
robel91 2022-06-09 12:07:57 -04:00 committed by GitHub
parent dc4fb4acc1
commit f3ed3bb742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 13 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ WITH base_table AS (
10,
9
)
) :: INTEGER AS gas_price,
) :: FLOAT AS gas_price,
udf_hex_to_int(
tx :gas :: STRING
) :: INTEGER AS gas_limit,
@ -51,16 +51,7 @@ WITH base_table AS (
udf_hex_to_int(
tx :receipt :effectiveGasPrice :: STRING
) :: INTEGER AS effective_Gas_Price,
(
(
gas_price * udf_hex_to_int(
tx :receipt :gasUsed :: STRING
)
) / pow(
10,
9
)
) :: INTEGER AS tx_fee,
(gas_price * gas_used) / pow(10,9) As tx_fee,
ingested_at :: TIMESTAMP AS ingested_at,
OBJECT_DELETE(
tx,