getBlockByHash
view
Column | Type | Required |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples
SELECT number, transactions FROM getBlockByHash WHERE hash = '0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35' AND transactionDetailsFlag = false
Microsoft Excel
-
In the Excel Data tab, choose Get Data > From Other Source > Blank Query (or New Query > From Other Source > Blank Query for older versions of Excel).
-
In the Power Query Editor formula bar, enter:
= Odbc.Query("dsn=Ethereum", "SELECT number, transactions FROM getBlockByHash WHERE hash = '0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35' AND transactionDetailsFlag = false")
replace
Ethereum
with the name of your Easysoft ODBC-Ethereum Driver data source. -
Press the tick button.
-
In the Query Settings > Properties > Name field, enter:
getBlockByHash
-
Select the transactions column.
-
Choose Transform > Parse > JSON.
-
Right-click
List
and choose Drill Down. -
Choose Home > Advanced Editor.
-
In the Advanced Editor window, change the line:
transactions = #"Parsed JSON"{0}[transactions]
to:
transactions = Table.Column(Source,"number") & #"Parsed JSON"{0}[transactions]
-
Choose Close and Load.