Published 15 February 2019

PoolInfoGetResult PoolInfoGet(1:PoolHash hash, 2:i64 index)

Description

Description

Get the block content

For web monitor. Get metainfo about block by hash

 

Load the block with the passed hash to the pool.
Put the flag of finding the block in the result structure equal to the flag of the block validity.
If the block is found, then load the block, in the pool in the result structure convert and save it.
Set the result status - SUCCESS

Parameters

Parameters

typedef binary PoolHash

Return

Return

struct PoolInfoGetResult

{

   1: general.APIResponse status

   2: bool isFound

   3: Pool pool

}

Description of the returned structures and typedefs

Description of the returned structures and typedefs

struct APIResponse

{

// 0 for success, 1 for failure, 2 for not being implemented (currently unused)

   1: i8 code

// Explanation

   2: string message

}

Votes 0, average rating 0

Contents