Skip to content

feat(api): expose minimumValidityBlocks in /chainstate#5465

Open
martinconic wants to merge 2 commits into
masterfrom
feat/chainstate-minimum-validity-blocks
Open

feat(api): expose minimumValidityBlocks in /chainstate#5465
martinconic wants to merge 2 commits into
masterfrom
feat/chainstate-minimum-validity-blocks

Conversation

@martinconic
Copy link
Copy Markdown
Contributor

@martinconic martinconic commented May 19, 2026

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Closes #4922.

Extends GET /chainstate with a minimumValidityBlocks field — the
postage stamp contract constant that defines the minimum number of
blocks a newly purchased batch must remain valid. With this, clients
have every input needed for stamp duration / cost calculations in a
single endpoint, without having to hit the Gnosis RPC and decode the
contract themselves.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

AI Disclosure

  • This PR contains code that has been generated by an LLM.
  • I have reviewed the AI generated code thoroughly.
  • I possess the technical expertise to responsibly review the code generated in this PR.

@martinconic martinconic marked this pull request as ready for review May 19, 2026 12:02
@martinconic martinconic self-assigned this May 19, 2026
@martinconic martinconic added this to the 2026 milestone May 19, 2026
@martinconic martinconic requested review from acud, akrem-chabchoub, gacevicljubisa, janos and sbackend123 and removed request for akrem-chabchoub May 19, 2026 12:25
Comment thread pkg/postage/postagecontract/contract.go Outdated
Comment thread pkg/api/postage.go Outdated
Comment thread pkg/api/postage.go Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose minimumValidityBlocks in chainstate endpoint from Postage Stamp contract

3 participants