# Get a single transaction from pending pool

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

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

Retrieves detailed information for a specific transaction currently in the pending pool using its transaction ID.

Reference: https://www.alchemy.com/docs/chains/tron/tron-http-api-endpoints/tron-http-api-endpoints/get-a-single-transaction-from-pending-pool

## Code Examples

### cURL

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

### JavaScript

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

fetch('https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionfrompending', 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/gettransactionfrompending"

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/gettransactionfrompending"

	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/gettransactionfrompending")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://tron-mainnet.g.alchemy.com/v2/docs-demo/wallet/gettransactionfrompending");
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/gettransactionfrompending
method: POST
operation:
  tags:
    - Tron HTTP API Endpoints
  summary: Get a single transaction from pending pool
  description: Retrieves detailed information for a specific transaction currently in the pending pool using its transaction ID.
  requestBody:
    required: true
    content:
      application/json:
        example:
          value: b61fc25144514889c725452e557e78f773672aac2e89da3f14704b8129a63e49
  responses:
    '200':
      description: Detailed transaction information from the pending pool
      content:
        application/json:
          example:
            txID: b61fc25144514889c725452e557e78f773672aac2e89da3f14704b8129a63e49
            raw_data:
              contract:
                - parameter:
                    type_url: type.googleapis.com/protocol.TransferContract
                    value:
                      owner_address: TXYZ...
                      to_address: TABC...
                      amount: 1000
```
