# Get asset issue by ID

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

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

Retrieves asset issuance details based on asset ID.

Reference: https://www.alchemy.com/docs/chains/tron/tron-solidity-http-api-endpoints/tron-solidity-http-api-endpoints/get-asset-issue-by-id

## Code Examples

### cURL

```bash
curl --request POST \
  --url https://tron-mainnet.g.alchemy.com/v2/docs-demo/walletsolidity/getassetissuebyid \
  --header 'Content-Type: application/json' \
  --data '{
  "value": 1,
  "visible": false
}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({value: 1, visible: false})
};

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

payload = {
    "value": 1,
    "visible": False
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

### Go

```go
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"value\": 1,\n  \"visible\": false\n}")

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

	req.Header.Add("Content-Type", "application/json")

	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/getassetissuebyid")
  .header("Content-Type", "application/json")
  .body("{\n  \"value\": 1,\n  \"visible\": false\n}")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://tron-mainnet.g.alchemy.com/v2/docs-demo/walletsolidity/getassetissuebyid");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n  \"value\": 1,\n  \"visible\": false\n}", false);
var response = await client.PostAsync(request);

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

```


## Operation Specification

```yaml
path: /walletsolidity/getassetissuebyid
method: POST
operation:
  summary: Get asset issue by ID
  description: Retrieves asset issuance details based on asset ID.
  tags:
    - Tron Solidity HTTP API Endpoints
  requestBody:
    required: true
    content:
      application/json:
        schema:
          type: object
          properties:
            value:
              type: integer
            visible:
              type: boolean
  responses:
    '200':
      description: Successful response with asset info
      content:
        application/json:
          schema:
            type: object
            example:
              owner_address: TGzz8gjYiYRqpfmDwnLxfgPuLVNmpCswVp
              name: SEED
              abbr: SEED
              total_supply: 100000000000
              trx_num: 1000000
              num: 1
              start_time: 1529987043000
              end_time: 1530342060000
              description: Sesameseed tokens for community rewards and SEEDgerminator investment of community-voted projects.
              url: http://www.sesameseed.org
              id: '1000001'
```
