Skip to content

docs: fix subscription response field path#3850

Open
vuyua9 wants to merge 2 commits into
ApeWorX:mainfrom
vuyua9:fix/subscriptions-response-result-number-vuyua9
Open

docs: fix subscription response field path#3850
vuyua9 wants to merge 2 commits into
ApeWorX:mainfrom
vuyua9:fix/subscriptions-response-result-number-vuyua9

Conversation

@vuyua9
Copy link
Copy Markdown

@vuyua9 vuyua9 commented May 24, 2026

What was changed

  • Update the introductory subscription example to read the new-head block number from response["result"].
  • Keep the example aligned with the formatted subscription response shape returned by process_subscriptions().

Why

process_subscriptions() yields formatted subscription responses with a top-level subscription and nested result. The example currently checks response["number"], which is not the shape users receive when they copy this snippet.

Validation

  • git diff --check origin/main...HEAD
  • changed-file conflict marker scan clean

Note: this PR is opened first so the follow-up commit can add the required newsfragment using the PR number, per newsfragments/README.md.

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.

1 participant