Skip to content

Commit

Permalink
add sql
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Jul 16, 2024
1 parent 0137c2f commit 4f05395
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,40 @@
- [ ] Traces
- [ ] Creation Traces

## SQL

```sql
CREATE TABLE IF NOT EXISTS blocks
(
time DateTime,
number UInt64,
date Date,
hash String,
parent_hash String,
nonce UInt64,
ommers_hash String,
logs_bloom String,
transactions_root String,
state_root String,
receipts_root String,
miner String,
difficulty Int64,
total_difficulty Decimal(38, 0),
size String,
mix_hash String,
extra_data String,
gas_limit UInt64,
gas_used UInt64,
blob_gas_used UInt64,
transaction_count String,
base_fee_per_gas String,
parent_beacon_root String
)
ENGINE = ReplacingMergeTree()
PRIMARY KEY (hash)
ORDER BY (hash);
```

## Data Visualization

- Dune's spellbook
Expand Down

0 comments on commit 4f05395

Please sign in to comment.