#Pending txns deltas

2 messages · Page 1 of 1 (latest)

rugged questBOT
#

Hi @plain walrus. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the knowledge sources provided, there isn't a direct API endpoint to retrieve deltas for pending transactions (transactions in the pool).

The Algorand API provides several endpoints related to pending transactions and ledger deltas, but they serve different purposes:

  1. You can retrieve pending transactions using endpoints like:

    • GET /v2/transactions/pending - Gets a list of all pending transactions Algod API
    • GET /v2/accounts/{address}/transactions/pending - Gets pending transactions for a specific address Algod API
  2. For ledger deltas, there are endpoints like:

    • GET /v2/deltas/{round}/txn/group - Gets ledger deltas for transaction groups in a confirmed round Algod API
    • GET /v2/deltas/txn/group/{id} - Gets a ledger delta for a specific transaction group

However, the delta endpoints are only available for transactions that have been confirmed and included in a block, not for pending transactions still in the pool.

The reason for this is that ledger deltas represent the changes made to the blockchain state, which only occur when transactions are executed as part of a confirmed block. Pending transactions haven't yet modified the state, so there are no deltas to retrieve.

If you need to understand the potential impact of a pending transaction, you would need to examine the transaction details themselves, which you can get through the pending transaction endpoints mentioned above.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: