GetPendingTransactionsByAddress - Algorand
Example code for the GetPendingTransactionsByAddress REST method. Complete guide on how to use GetPendingTransactionsByAddress REST in GetBlock Web3 documentation.
Get the list of pending transactions by address, sorted by priority in decreasing order and truncated at the end at MAX. If MAX = 0, returns all pending transactions.
Endpoint
GET /v2/accounts/{address}/transactions/pendingPath Parameters
address
string
Yes
An account public key.
Query Parameters
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
export ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
curl "${ALGO_ALGOD}v2/accounts/REPLACE_ADDRESS/transactions/pending"Response
Returns application/json. Top-level fields:
top-transactions
array
An array of signed transaction objects.
total-transactions
integer
Total number of transactions in the pool.
Error Handling
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
Last updated
Was this helpful?