# eth_getBlockByNumber: parameters, returns and CU

> Original page: https://docs.blockvectra.com/en/api/json-rpc/methods/eth_getBlockByNumber/

## Summary

Return a block by its number, optionally with full transaction objects.

## Compute Units (CU) and Pricing

CU weight, price and per-chain availability are shown on the method page: https://docs.blockvectra.com/en/api/json-rpc/methods/eth_getBlockByNumber/

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `blockParameter` | `QUANTITY\|TAG` | Block number or tag: latest, earliest, pending, safe or finalized. |
| `fullTransactions` | `boolean` | true returns full transaction objects; false returns only the list of transaction hashes. |

## Returns

- **Type**: `OBJECT|NULL`
- **Description**: Block object with header fields and a transaction list; null when the block is not found.

## Notes

The blocks behind the latest, pending, safe and finalized tags change as the chain advances.

## Request Example

```bash
curl -X POST "https://dev-api.blockvectra.network/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: <api_key>' \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getBlockByNumber",
    "params": [
      "latest",
      false
    ],
    "id": 1
  }'
```
