# Retrieve a list of pending transactions by ID

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

POST https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionlistfrompending

Returns the transaction details for a list of pending transaction IDs currently in the pending pool.

Reference: https://www.alchemy.com/docs/chains/tron/tron-http-api-endpoints/tron-http-api-endpoints/retrieve-a-list-of-pending-transactions-by-id

## Code Examples

### cURL

```bash
curl --request POST \
  --url https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionlistfrompending
```

### JavaScript

```javascript
const options = {method: 'POST'};

fetch('https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionlistfrompending', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionlistfrompending"

response = requests.post(url)

print(response.text)
```

### Go

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionlistfrompending"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
```

### Java

```java
HttpResponse<String> response = Unirest.post("https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionlistfrompending")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionlistfrompending");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);

```


## Operation Specification

```yaml
path: /wallet/gettransactionlistfrompending
method: POST
operation:
  tags:
    - Tron HTTP API Endpoints
  summary: Retrieve a list of pending transactions by ID
  description: Returns the transaction details for a list of pending transaction IDs currently in the pending pool.
  requestBody:
    required: true
    content:
      application/json:
        example:
          txId:
            - 3b81c36f9c1cf6f7e4d082aa870c940046b3a4fe33079babd2361470ae792e89
            - af4582b61d4fdc703f9c4ef3b970c816838f071d2c89134edef89ed83dc92a3b
            - 26304c01d524cb027b3344b649bb6a65b27a78c2db2d3d7d6432b064a0a033a6
  responses:
    '200':
      description: A list of pending transactions
      content:
        application/json:
          example:
            transactions:
              - txID: 3b81c36f9c1cf6f7e4d082aa870c940046b3a4fe33079babd2361470ae792e89
                raw_data:
                  ...: null
              - txID: af4582b61d4fdc703f9c4ef3b970c816838f071d2c89134edef89ed83dc92a3b
                raw_data:
                  ...: null
```
