> For the complete documentation index, see [llms.txt](https://docs.swttoken.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swttoken.com/api-reference/apache-thrift-api/blocks.md).

# Blocks

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

### GetLastHash() <a href="#getlasthash" id="getlasthash"></a>

returns the hash of the last block.

PoolHash GetLastHash()

### PoolListGetStable() <a href="#poollistgetstable" id="poollistgetstable"></a>

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

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

### PoolListGet() <a href="#poollistget" id="poollistget"></a>

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

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

### PoolInfoGet() <a href="#poolinfoget" id="poolinfoget"></a>

returns information about a block

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

### PoolTransactionsGet() <a href="#pooltransactionsget" id="pooltransactionsget"></a>

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() <a href="#statsget" id="statsget"></a>

returns statistics on the blockchain

StatsGetResult StatsGet()
