Skip to content

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

Merged
martinconic merged 2 commits into
masterfrom
feat/chainstate-minimum-validity-blocks
May 25, 2026
Merged

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

Conversation

@martinconic

@martinconic martinconic commented May 19, 2026

Copy link
Copy Markdown
Contributor

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
@martinconic martinconic merged commit 530fb8e into master May 25, 2026
15 checks passed
@martinconic martinconic deleted the feat/chainstate-minimum-validity-blocks branch May 25, 2026 11:53
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

5 participants