Get the list of pending transactions, sorted by priority in decreasing order and truncated at the end at MAX. If MAX = 0, returns all pending transactions.
Endpoint
httpGET /v2/transactions/pending
Query Parameters
| Parameter | Type | Required | Description |
|---|
| max | integer | Optional | Truncated number of transactions to display. If max=0, returns all pending txns. |
| format | string | Optional | Configures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON. |
Example
bashexport ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
curl "${ALGO_ALGOD}v2/transactions/pending"
Response
Returns application/json. Top-level fields:
| Field | Type | Description |
|---|
| top-transactions | array | An array of signed transaction objects. |
| total-transactions | integer | Total number of transactions in the pool. |
Error Handling
| Error | Message | Description |
|---|
| 400 | Bad request | A parameter was missing or malformed |
| 404 | Not found | The requested resource does not exist |
| 403 / RBAC: access denied | Access denied | The GetBlock access token is missing or incorrect |