# getSignatureStatuses

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

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

Returns the statuses of a list of transaction signatures.

Reference: https://www.alchemy.com/docs/chains/solana/solana-api-endpoints/get-signature-statuses

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| Signatures | string[] | Yes | An array of transaction signatures to confirm. |
| Configuration | object | No | Optional configuration object. |

## Result

**Transaction statuses** (object[]): An array containing the status of each transaction signature.

## 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": "getSignatureStatuses",
  "params": [
    [
      "string"
    ],
    {
      "searchTransactionHistory": false
    }
  ]
}'
```

### JavaScript

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

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": "getSignatureStatuses",
    "params": [["string"], { "searchTransactionHistory": 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://solana-mainnet.g.alchemy.com/v2/docs-demo"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getSignatureStatuses\",\n  \"params\": [\n    [\n      \"string\"\n    ],\n    {\n      \"searchTransactionHistory\": false\n    }\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\": \"getSignatureStatuses\",\n  \"params\": [\n    [\n      \"string\"\n    ],\n    {\n      \"searchTransactionHistory\": false\n    }\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\": \"getSignatureStatuses\",\n  \"params\": [\n    [\n      \"string\"\n    ],\n    {\n      \"searchTransactionHistory\": false\n    }\n  ]\n}", false);
var response = await client.PostAsync(request);

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

```


## OpenRPC Method Specification

```yaml
name: getSignatureStatuses
description: Returns the statuses of a list of transaction signatures.
params:
  - name: Signatures
    required: true
    description: An array of transaction signatures to confirm.
    schema:
      type: array
      items:
        type: string
  - name: Configuration
    required: false
    description: Optional configuration object.
    schema:
      title: GetSignatureStatuses Configuration
      type: object
      properties:
        searchTransactionHistory:
          type: boolean
          description: If true, searches the ledger cache for any signatures not found in the recent status cache.
result:
  name: Transaction statuses
  description: An array containing the status of each transaction signature.
  schema:
    type: array
    items:
      title: Transaction Status
      type: object
      properties:
        slot:
          type: integer
          description: The slot in which the transaction was processed.
        confirmations:
          type: integer
          nullable: true
          description: The number of blocks since signature confirmation, or null if rooted and finalized.
        err:
          type: object
          nullable: true
          description: Error if the transaction failed, or null if the transaction succeeded.
        confirmationStatus:
          type: string
          nullable: true
          description: The transaction's cluster confirmation status.
        status:
          type: object
          description: DEPRECATED. The transaction status.
```
