BlockClient
Block client
Author
Marcus Cvjeticanin
Since
0.1.0
Parameters
node
The node that the wallet service is connected to.
Functions
Link copied to clipboard
Get a block.
Link copied to clipboard
Get block count.
Link copied to clipboard
suspend fun getBlockDetailsByHeight(blockDetailsByHeight: BlockDetailsByHeightRequest): BlockDetailResponse?
Get block details by hash
Link copied to clipboard
Get block hash.
Link copied to clipboard
suspend fun getBlockHeaderByHash(getBlockHeaderByHashRequest: GetBlockHeaderByHashRequest): GetBlockHeaderByHashResponse?
Get block header by hash.
Link copied to clipboard
suspend fun getBlockHeaderByHeight(getBlockHeaderByHeightRequest: GetBlockHeaderByHeightRequest): GetBlockHeaderByHeightResponse?
Get block header by height.
Link copied to clipboard
suspend fun getBlocksDetailsByHashes(blocksDetailsByHashes: BlocksDetailsByHashesRequest): BlocksDetailsByHashesResponse?
Get blocks details by hashes
Link copied to clipboard
suspend fun getBlocksDetailsByHeights(blocksDetailsByHeights: BlocksDetailsByHeightsRequest): BlocksDetailsResponse?
Get blocks details by heights
Link copied to clipboard
suspend fun getBlocksHashesByTimestamps(blocksHashesByTimestamps: BlocksHashesByTimestampsRequest): BlocksHashesByTimestampsResponse?
Get blocks hashes by timestamps
Link copied to clipboard
Get a list of blocks.
Link copied to clipboard
suspend fun getBlockTemplate(getBlockTemplateRequest: GetBlockTemplateRequest): GetBlockTemplateResponse?
Get block template.
Link copied to clipboard
Get the currency ID.
Link copied to clipboard
suspend fun getLastBlockHeader(getLastBlockHeaderRequest: GetLastBlockHeaderRequest): GetLastBlockHeaderResponse?
Get the block header of the last block.
Link copied to clipboard
Submit block.