tuweni / org.apache.tuweni.les / LightClient

LightClient

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.

Functions

getBlockBodies

abstract fun getBlockBodies(vararg blockHashes: Hash): List<BlockBody>

Get block bodies from remote peers.

getBlockHeaders

abstract fun getBlockHeaders(blockNumberOrHash: Bytes32, maxHeaders: Int = 10, skip: Int = 0, reverse: Boolean = false): List<BlockHeader>

Get block headers from remote peers.

getReceipts

abstract fun getReceipts(vararg blockHashes: Hash): List<List<TransactionReceipt>>

Get transaction receipts from remote peers for blocks.