Blocks

Below are the SWT Thrift API methods that allow you to extract information about blocks from the SWT blockchain

GetLastHash()

returns the hash of the last block.

PoolHash GetLastHash()

PoolListGetStable()

returns a list of blocks starting with sequence in the amount of limit.

PoolListGetResult PoolListGetStable(1:i64 sequence, 2:i64 limit)

PoolListGet()

returns a list of blocks starting from the last-offset in the amount of limit

PoolListGetResult PoolListGet(1:i64 offset, 2:i64 limit)

PoolInfoGet()

returns information about a block

PoolInfoGetResult PoolInfoGet(1:i64 sequence, 2:i64 index)

PoolTransactionsGet()

Get transactions from exactly hash pool, skipping offset and retrieving at most limit

PoolTransactionsGetResult PoolTransactionsGet(1:i64 sequence, 2:i64 offset, 3:i64 limit)

StatsGet()

returns statistics on the blockchain

StatsGetResult StatsGet()

Last updated