Skip to content

feat: add optional valid_until to wallet_strk20Balances - #408

Merged
odednaor merged 1 commit into
masterfrom
odedn/strk20-balances-valid-until
Sep 10, 2026
Merged

odednaor merged 1 commit into
masterfrom
odedn/strk20-balances-valid-until

Conversation

@odednaor

Copy link
Copy Markdown
Collaborator

Adds an optional valid_until param to wallet_strk20Balances, letting a dapp request how long its authorization to read shielded balances stays valid. A multi-step flow such as a swap can then re-query balances without prompting the user on each call.

🤖 Generated with Claude Code

Let a dapp request how long its authorization to read shielded
balances stays valid, so a multi-step flow (e.g. a swap) can
re-query balances without prompting the user each time.

The field is optional, so this is non-breaking: when it is omitted
the wallet applies its own default window.

The timestamp schema is inlined rather than defined as a shared
component, matching how block header timestamps are declared in
api/starknet_api_openrpc.json.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@odednaor
odednaor merged commit 8fbe175 into master Sep 10, 2026
3 checks passed
@odednaor odednaor mentioned this pull request Sep 10, 2026
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.

2 participants