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.
getBlockBodies |
Get block bodies from remote peers. abstract fun getBlockBodies(vararg blockHashes: Hash): List<BlockBody> |
getBlockHeaders |
Get block headers from remote peers. abstract fun getBlockHeaders(blockNumberOrHash: Bytes32, maxHeaders: Int = 10, skip: Int = 0, reverse: Boolean = false): List<BlockHeader> |
getReceipts |
Get transaction receipts from remote peers for blocks. abstract fun getReceipts(vararg blockHashes: Hash): List<List<TransactionReceipt>> |