# bor_getSignersAtHash

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

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

Returns all the signers of the block which match the specified block hash.

Reference: https://www.alchemy.com/docs/chains/polygon-pos/polygon-po-s-api-endpoints/bor-get-signers-at-hash

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| hash | string | Yes | The hash of the block. |

## Result

**Signers** (string[]): Array of signers for the specified block hash

## Example

### Request

```json
{
  "jsonrpc": "2.0",
  "method": "bor_getSignersAtHash",
  "params": [
    "0x29fa73e3da83ddac98f527254fe37002e052725a88904bac14f03e919e1e2876"
  ],
  "id": 1
}
```

### Response

```json
{
  "jsonrpc": "2.0",
  "result": [
    "0x0375b2fc7140977c9c76d45421564e354ed42277",
    "0x42eefcda06ead475cde3731b8eb138e88cd0bac3",
    "0x5973918275c01f50555d44e92c9d9b353cadad54",
    "0x7fcd58c2d53d980b247f1612fdba93e9a76193e6",
    "0xb702f1c9154ac9c08da247a8e30ee6f2f3373f41",
    "0xb8bb158b93c94ed35c1970d610d1e2b34e26652c",
    "0xf84c74dea96df0ec22e11e7c33996c73fcc2d822"
  ],
  "id": 1
}
```

## Code Examples

### cURL

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

### JavaScript

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

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

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

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

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://polygon-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\": \"bor_getSignersAtHash\",\n  \"params\": [\n    \"0x29fa73e3da83ddac98f527254fe37002e052725a88904bac14f03e919e1e2876\"\n  ]\n}", false);
var response = await client.PostAsync(request);

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

```


## OpenRPC Method Specification

```yaml
name: bor_getSignersAtHash
description: Returns all the signers of the block which match the specified block hash.
params:
  - name: hash
    required: true
    description: The hash of the block.
    schema:
      title: 32 byte hex value
      type: string
      pattern: ^0x[0-9a-f]{64}$
result:
  name: Signers
  description: Array of signers for the specified block hash
  schema:
    type: array
    items:
      title: hex encoded address
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
examples:
  - name: bor_getSignersAtHash example
    params:
      - name: hash
        value: '0x29fa73e3da83ddac98f527254fe37002e052725a88904bac14f03e919e1e2876'
    result:
      name: Signers
      value:
        - '0x0375b2fc7140977c9c76d45421564e354ed42277'
        - '0x42eefcda06ead475cde3731b8eb138e88cd0bac3'
        - '0x5973918275c01f50555d44e92c9d9b353cadad54'
        - '0x7fcd58c2d53d980b247f1612fdba93e9a76193e6'
        - '0xb702f1c9154ac9c08da247a8e30ee6f2f3373f41'
        - '0xb8bb158b93c94ed35c1970d610d1e2b34e26652c'
        - '0xf84c74dea96df0ec22e11e7c33996c73fcc2d822'
```
