Avro schema definitions for Dshackle Archive files.
-
blockchainType
- type of blockchain, as a definitions of what fields to expect. One ofETHEREUM
orBITCOIN
-
blockchainId
- actual blockchain id (ETH
,BTC
, etc) -
archiveTimestamp
- when the archive record was created. Milliseconds since epoch -
height
- block height -
blockId
- block hash -
timestamp
- block timestamp. Milliseconds since epoch -
parentId
- parent block hash -
json
- JSON response for that block
-
unclesCount
- number of uncles for the current block -
uncle0Json
- JSON for first uncle (eth_getUncleByBlockHashAndIndex(0)
) -
uncle1Json
- JSON for second uncle (eth_getUncleByBlockHashAndIndex(1)
)
-
none
-
blockchainType
- type of blockchain, as a definitions of what fields to expect. One ofETHEREUM
orBITCOIN
-
blockchainId
- actual blockchain id (ETH
,BTC
, etc) -
archiveTimestamp
- when the archive record was created. Milliseconds since epoch -
height
- block height -
blockId
- block hash -
timestamp
- block timestamp. Milliseconds since epoch -
index
- index of the transaction in block -
txid
- hash or transaction id of the transaction -
json
- JSON response for that transaction -
raw
- raw bytes of the transaction
-
from
- from address -
to
- to address -
receiptJson
- JSON response foreth_getTransactionReceipt
-
traceJson
- JSON response fortrace_replayTransaction(trace)
-
stateDiffJson
- JSON response fortrace_replayTransaction(stateDiff)
-
none
See src/main/avro
for actual Avro definitions.
To use Java generated stubs use:
repositories {
maven { url "https://maven.emrld.io" }
}
dependencies {
implementation 'io.emeraldpay.dshackle.archive:dshackle-archive-avro:0.1'
}
Generated classes to access Avro messages:
-
io.emeraldpay.dshackle.archive.avro.Block
-
io.emeraldpay.dshackle.archive.avro.Transaction
Copyright 2022 EmeraldPay, Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.