mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
26 lines
No EOL
479 B
Text
26 lines
No EOL
479 B
Text
CREATE TABLE IF NOT EXISTS blocks (
|
|
hash text primary key,
|
|
coinbase text,
|
|
gasUsed numeric,
|
|
gasLimit numeric,
|
|
txCount numeric,
|
|
uncleCount numeric,
|
|
number bigint
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS txs (
|
|
txHash text,
|
|
to_addr text,
|
|
from_addr text,
|
|
blockhash text references blocks(hash),
|
|
amount numeric,
|
|
gasprice numeric,
|
|
gas numeric,
|
|
nonce numeric,
|
|
data bytea
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS accounts (
|
|
addr text primary key unique,
|
|
balance numeric
|
|
); |