GetPendingTransactions - Algorand

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

ParameterTypeRequiredDescription
maxintegerOptionalTruncated number of transactions to display. If max=0, returns all pending txns.
formatstringOptionalConfigures 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:

FieldTypeDescription
top-transactionsarrayAn array of signed transaction objects.
total-transactionsintegerTotal number of transactions in the pool.

Error Handling

ErrorMessageDescription
400Bad requestA parameter was missing or malformed
404Not foundThe requested resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect