# /cosmos/staking/v1beta1/params

Queries the staking parameters.

## Parameters

This method does not accept any parameters.

## Returns

- **params** (object): The params object which contains the following fields:
  - **unbonding_time** (string): The duration for which tokens remain in the unbonding state after being unbonded from staking
  - **max_validators** (integer): The maximum number of validators allowed in the network
  - **max_entries** (integer): The maximum number of entries in the queue for pending transactions or other operations
  - **historical_entries** (integer): The number of historical entries stored or maintained for reference or auditing purposes
  - **bond_denom** (string): The denomination of the bond or stake
  - **min_commission_rate** (string): The minimum commission rate that validators can charge for their services
  - **max_voting_power_ratio** (string): (Optional) The maximum ratio of voting power that can be delegated to a single validator
  - **max_voting_power_enforcement_threshold** (string): (Optional) The threshold beyond which additional voting power delegated to a validator is subject to enforcement or limitations

## Code Examples

### CURL

```sh
curl --location '{{url}}cosmos/staking/v1beta1/params'
```

### GO

```go
package main

import (
	"context"
	stk "cosmossdk.io/api/cosmos/staking/v1beta1"
	"fmt"
	"google.golang.org/grpc"
	"log"
)

func main() {
	endpoint := "YOUR_QUICKNODE_ENDPOINT"
	target, opts := getGrpcOptions(endpoint)
	grpcConn, err := grpc.Dial(target, opts...)
	if err != nil {
		log.Fatal(err)
	}
	defer grpcConn.Close()

	staking := stk.NewQueryClient(grpcConn)
	resp, err := staking.Params(context.Background(), &stk.QueryParamsRequest{})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(resp.Params.String())
}
```

### JAVASCRIPT

```js
const requestOptions = {
    method: "GET",
    redirect: "follow"
  };
  
  fetch("{{url}}cosmos/staking/v1beta1/params", requestOptions)
    .then((response) => response.text())
    .then((result) => console.log(result))
    .catch((error) => console.error(error));
```

### PYTHON

```py
import requests

url = "{{url}}cosmos/staking/v1beta1/params"

payload = {}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
```

### RUBY

```rb
require "uri"
require "net/http"

url = URI("{{url}}cosmos/staking/v1beta1/params")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body
```

