---
title: "UpdateParams defines a (governance) operation for updating the module
parameters. The authority defaults to the x/gov module account."
method: POST
path: "/poktroll.shared.Msg/UpdateParams"
tags: ["Msg"]
---

# UpdateParams defines a (governance) operation for updating the module
parameters. The authority defaults to the x/gov module account.

`POST /poktroll.shared.Msg/UpdateParams`

## Request body

- PoktrollSharedMsgUpdateParams — MsgUpdateParams is the Msg/UpdateParams request type.
  - `authority` string — authority is the address that controls the module (defaults to x/gov unless overwritten).
  - `params` PoktrollSharedParams — Params defines the parameters for the module.
    - `claim_window_close_offset_blocks` string, uint64 — claim_window_close_offset_blocks is the number of blocks after the claim window open height, at which the claim window closes.
    - `claim_window_open_offset_blocks` string, uint64 — claim_window_open_offset_blocks is the number of blocks after the session grace period height, at which the claim window opens.
    - `grace_period_end_offset_blocks` string, uint64 — grace_period_end_offset_blocks is the number of blocks, after the session end height, during which the supplier can still service payable relays. Suppliers will need to recreate a claim for the previous session (if already created) to get paid for the additional relays.
    - `num_blocks_per_session` string, uint64 — num_blocks_per_session is the number of blocks between the session start & end heights.
    - `proof_window_close_offset_blocks` string, uint64 — proof_window_close_offset_blocks is the number of blocks after the proof window open height, at which the proof window closes.
    - `proof_window_open_offset_blocks` string, uint64 — proof_window_open_offset_blocks is the number of blocks after the claim window close height, at which the proof window opens.
    - `supplier_unbonding_period_sessions` string, uint64 — supplier_unbonding_period_sessions is the number of sessions that a supplier must wait after unstaking before their staked assets are moved to their account balance. On-chain business logic requires, and ensures, that the corresponding block count of the unbonding period will exceed the end of any active claim & proof lifecycles.

## Response `200`

A successful response.

- PoktrollSharedMsgUpdateParamsResponse — MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2024-08-14** `21c607e4fa20` — 1 info
  - api operation id `PoktrollSharedMsg_UpdateParams` removed and replaced with `GithubCompoktNetworkpoktrollMsg_UpdateParamsMixin36`
- **2024-05-24** `82ec347961fe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/poktroll.shared.Msg/UpdateParams/post.md)

---

[API](https://skmtc.dev/pokt-network/apis/http-api-console.md) · [All operations](https://skmtc.dev/pokt-network/apis/http-api-console/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pokt-network/http-api-console/revisions/21c607e4fa20/schema)
