# Steem Developer Portal

Used to query values related to the block plugin. These AppBase API methods are still under development and subject to change.

- Working on mainnet
- Working on testnet

#### block_api.get_block

Retrieve a full, signed block of the referenced block, or null if no matching block was found.

Parameters:

- `block_num:int`

`block_num` (int) |
--- | ---
`1` | Queries the very first block.
`8675309` | Queries block number 8,675,309.
`62396745` | Queries block number 62,396,745.

##### Query Parameters JSON

    {"block_num": 0}

##### Expected Response JSON

    {}

##### Example `curl`

    curl -s --data '{"jsonrpc":"2.0", "method":"block_api.get_block", "params":{"block_num":1}, "id":1}' https://api.steemit.com

    curl -s --data '{"jsonrpc":"2.0", "method":"block_api.get_block", "params":{"block_num":8675309}, "id":1}' https://api.steemit.com

    curl -s --data '{"jsonrpc":"2.0", "method":"block_api.get_block", "params":{"block_num":62396745}, "id":1}' https://api.steemit.com

- Working on mainnet
- Working on testnet

#### block_api.get_block_header

Retrieve a block header of the referenced block, or null if no matching block was found.

Parameters:

- `block_num:int` - Height of the block whose header should be returned

`block_num` (int) |
--- | ---
`1` | Queries the block headers for the very first block.
`8675309` | Queries block headers for block number 8,675,309.
`62396745` | Queries block headers for block number 62,396,745.

##### Query Parameters JSON

    {"block_num": 0}

##### Expected Response JSON

    {}

##### Example `curl`

    curl -s --data '{"jsonrpc":"2.0", "method":"block_api.get_block_header", "params":{"block_num":1}, "id":1}' https://api.steemit.com

    curl -s --data '{"jsonrpc":"2.0", "method":"block_api.get_block_header", "params":{"block_num":8675309}, "id":1}' https://api.steemit.com

    curl -s --data '{"jsonrpc":"2.0", "method":"block_api.get_block_header", "params":{"block_num":62396745}, "id":1}' https://api.steemit.com