eth.events 활용하여 이더리움 블록체인 데이터 가져오기

Jin.S
May 19 · 5 min read

가입 및 Key 얻기

Sign-up
Get API key
Your API Key

데이터 가져오기

import psycopg2
import pandas as pd
import pandas.io.sql as sqliocon = psycopg2.connect(database="ethereum_ethereum_mainnet",
                        user="6c...",
                        password="1c...",
                        host="sql.eth.events", port=45432)
query = "SELECT * FROM tx WHERE tx.to = '0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359' AND timestamp > '2019-01-01 00:00:00'"
    
df_dai = sqlio.read_sql_query(query, con)
df_dai.head(1).T
Example Transaction

사용후기 및 더 알아보기

Onther-Tech

Building an Ethereum Blockchain ECO system to Change the World

Jin.S

Written by

Jin.S

Onther-Tech

Building an Ethereum Blockchain ECO system to Change the World