# Get burned TRX amount

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

POST https://tron-mainnet.g.alchemy.com/v2/docs-demo/walletsolidity/getburntrx

Retrieves the total amount of burned TRX.

Reference: https://www.alchemy.com/docs/chains/tron/tron-solidity-http-api-endpoints/tron-solidity-http-api-endpoints/get-burned-trx-amount

## Code Examples

### cURL

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

### JavaScript

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

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

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/walletsolidity/getburntrx"

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

### C#

```csharp
using RestSharp;


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

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

```


## Operation Specification

```yaml
path: /walletsolidity/getburntrx
method: POST
operation:
  summary: Get burned TRX amount
  description: Retrieves the total amount of burned TRX.
  tags:
    - Tron Solidity HTTP API Endpoints
  responses:
    '200':
      description: Successful response with burn TRX amount
      content:
        application/json:
          schema:
            type: object
            properties:
              burnTrxAmount:
                type: integer
            example:
              burnTrxAmount: 15444782802476450
```
