# getSignaturesForAsset_v2

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

POST https://solana-mainnet.g.alchemy.com/v2/{apiKey}

Returns all historical transaction signatures for a Solana NFT or compressed NFT (mint, transfers, burns, and other state changes), with pagination.
**Note:** this method is designed for compressed NFTs. For regular NFTs, use the standard Solana `getSignaturesForAddress` method instead. This DAS-specific endpoint exists because `getSignaturesForAddress` does not work with compressed NFTs.


Reference: https://www.alchemy.com/docs/reference/alchemy-das-apis-for-solana-v2/solana-das-api-v2-endpoints/get-signatures-for-asset-v-2

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| id | string | Yes | The unique identifier (mint address) of the compressed asset to retrieve transaction history for. |
| page | integer | Yes | The page of results to return (1-based). Required. |
| limit | integer | No | The maximum number of transaction signatures to return per page. |
| before | string | No | The cursor for paginating backwards through the signatures. |
| after | string | No | The cursor for paginating forwards through the signatures. |

## Result

**Asset signature list** (object): A paginated list of `[signature, operation]` tuples affecting this compressed asset.

## Example

### Request

```json
{
  "jsonrpc": "2.0",
  "method": "getSignaturesForAsset_v2",
  "params": [
    "FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC",
    1
  ],
  "id": 1
}
```

### Response

```json
{
  "jsonrpc": "2.0",
  "result": {
    "last_indexed_slot": 365750752,
    "total": 3,
    "limit": 1000,
    "items": [
      [
        "5nLi8m72bU6PBcz4Xrk23P6KTGy9ufF92kZiQXjTv9ELgkUxrNaiCGhMF4vh6RAcisw9DEQWJt9ogM3G2uCuwwV7",
        "MintToCollectionV1"
      ],
      [
        "323Ag4J69gagBt3neUvajNauMydiXZTmXYSfdK5swWcK1iwCUypcXv45UFcy5PTt136G9gtQ45oyPJRs1f2zFZ3v",
        "Transfer"
      ],
      [
        "3TbybyYRtNjVMhhahTNbd4bbpiEacZn2qkwtH7ByL7tCHmwi2g4YapPidSRGs1gjaseKbs7RjNmUKWmU6xbf3wUT",
        "Transfer"
      ]
    ]
  },
  "id": 1
}
```

## Code Examples

### cURL

```bash
curl --request POST \
  --url https://solana-mainnet.g.alchemy.com/v2/docs-demo \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getSignaturesForAsset_v2",
  "params": [
    "FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC",
    1,
    1,
    "string",
    "string"
  ]
}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'getSignaturesForAsset_v2',
    params: ['FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC', 1, 1, 'string', 'string']
  })
};

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

### Python

```python
import requests

url = "https://solana-mainnet.g.alchemy.com/v2/docs-demo"

payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getSignaturesForAsset_v2",
    "params": ["FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC", 1, 1, "string", "string"]
}
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://solana-mainnet.g.alchemy.com/v2/docs-demo"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getSignaturesForAsset_v2\",\n  \"params\": [\n    \"FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC\",\n    1,\n    1,\n    \"string\",\n    \"string\"\n  ]\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://solana-mainnet.g.alchemy.com/v2/docs-demo")
  .header("Content-Type", "application/json")
  .body("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getSignaturesForAsset_v2\",\n  \"params\": [\n    \"FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC\",\n    1,\n    1,\n    \"string\",\n    \"string\"\n  ]\n}")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://solana-mainnet.g.alchemy.com/v2/docs-demo");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getSignaturesForAsset_v2\",\n  \"params\": [\n    \"FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC\",\n    1,\n    1,\n    \"string\",\n    \"string\"\n  ]\n}", false);
var response = await client.PostAsync(request);

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

```


## OpenRPC Method Specification

```yaml
name: getSignaturesForAsset_v2
description: |
  Returns all historical transaction signatures for a Solana NFT or compressed NFT (mint, transfers, burns, and other state changes), with pagination.
  **Note:** this method is designed for compressed NFTs. For regular NFTs, use the standard Solana `getSignaturesForAddress` method instead. This DAS-specific endpoint exists because `getSignaturesForAddress` does not work with compressed NFTs.
x-compute-units: 160
x-rate-limit-cus: 200
paramStructure: by-name
params:
  - name: id
    required: true
    description: The unique identifier (mint address) of the compressed asset to retrieve transaction history for.
    schema:
      title: Asset ID
      type: string
      description: The ID of the asset, typically a base-58 encoded string (mint address).
  - name: page
    required: true
    description: The page of results to return (1-based). Required.
    schema:
      type: integer
  - name: limit
    required: false
    description: The maximum number of transaction signatures to return per page.
    schema:
      type: integer
  - name: before
    required: false
    description: The cursor for paginating backwards through the signatures.
    schema:
      type: string
  - name: after
    required: false
    description: The cursor for paginating forwards through the signatures.
    schema:
      type: string
examples:
  - name: getSignaturesForAsset_v2 example
    params:
      - name: id
        value: FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC
      - name: page
        value: 1
    result:
      name: Asset signature list
      value:
        last_indexed_slot: 365750752
        total: 3
        limit: 1000
        items:
          - - 5nLi8m72bU6PBcz4Xrk23P6KTGy9ufF92kZiQXjTv9ELgkUxrNaiCGhMF4vh6RAcisw9DEQWJt9ogM3G2uCuwwV7
            - MintToCollectionV1
          - - 323Ag4J69gagBt3neUvajNauMydiXZTmXYSfdK5swWcK1iwCUypcXv45UFcy5PTt136G9gtQ45oyPJRs1f2zFZ3v
            - Transfer
          - - 3TbybyYRtNjVMhhahTNbd4bbpiEacZn2qkwtH7ByL7tCHmwi2g4YapPidSRGs1gjaseKbs7RjNmUKWmU6xbf3wUT
            - Transfer
result:
  name: Asset signature list
  description: A paginated list of `[signature, operation]` tuples affecting this compressed asset.
  schema:
    title: Asset signature list
    type: object
    description: A paginated list of transaction signatures affecting a compressed asset.
    properties:
      last_indexed_slot:
        type: integer
        description: All on-chain data up to and including this slot is guaranteed to have been indexed.
      total:
        type: integer
        description: The total number of transactions found in this asset's history.
      limit:
        type: integer
        description: The maximum number of signatures requested per page.
      items:
        type: array
        description: An array of `[signature, operation_type]` tuples, one per transaction.
        items:
          type: array
          description: A 2-element tuple of `[signature, operation]`.
          items:
            type: string
```
