interface LightClient
(source)
Calls to LES functions from the point of view of the consumer of the subprotocol.
When executing those calls, the client will store all data transferred in the blockchain repository.
abstract fun getBlockBodies(vararg blockHashes: Hash): List<BlockBody>
Get block bodies from remote peers. |
|
abstract fun getBlockHeaders(blockNumberOrHash: Bytes32, maxHeaders: Int = 10, skip: Int = 0, reverse: Boolean = false): List<BlockHeader>
Get block headers from remote peers. |
|
abstract fun getReceipts(vararg blockHashes: Hash): List<List<TransactionReceipt>>
Get transaction receipts from remote peers for blocks. |