Skip to content

docs: improve formats parameter description for offchain users#3449

Merged
nidhi-singh02 merged 2 commits intomainfrom
devin/1770620852-improve-formats-description
Feb 9, 2026
Merged

docs: improve formats parameter description for offchain users#3449
nidhi-singh02 merged 2 commits intomainfrom
devin/1770620852-improve-formats-description

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 9, 2026

Summary

Updates the formats parameter description on the Subscribe to Prices page to be clearer for offchain users.

The old description framed formats purely as a chain selector ("list of chains to receive a signed payload for"), which was confusing for offchain consumers. The new description:

  • Clarifies formats controls the binary encoding format of the payload
  • Notes the field is mandatory but accepts an empty array (formats: []) when no binary payload is needed
  • Explicitly mentions leUnsigned as the offchain-only option
  • Links to the Binary Formats & Signature Schemes section on the Payload Reference page

Rationale

Recent offchain customers found the existing description unintuitive since it only referenced chains and signed payloads, with no mention of the offchain use case or the ability to pass an empty array.

Updates since last revision

  • Fixed the "Binary Formats & Signature Schemes" link: changed from a same-page anchor (#binary-formats--signature-schemes) to a cross-page link (/price-feeds/pro/payload-reference#binary-formats--signature-schemes) since the section lives on the Payload Reference page, not on the Subscribe to Prices page.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

This is a documentation-only change (single line in an MDX file). No functional code is affected.

Review checklist

  • Verify the anchor #binary-formats--signature-schemes resolves correctly on the Payload Reference page (the & in the heading "Binary Formats & Signature Schemes" produces a double hyphen in the slug — confirm this matches)
  • Confirm that formats is indeed mandatory and that formats: [] is a valid value per the API

Link to Devin run: https://app.devin.ai/sessions/35a898029ea8449cbd657d84eb357792
Requested by: @nidhi-singh02

Co-Authored-By: Nidhi Singh <nidhi2894@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
component-library Ready Ready Preview, Comment Feb 9, 2026 7:19am
developer-hub Ready Ready Preview, Comment Feb 9, 2026 7:19am
pyth-app Ready Ready Preview, Comment Feb 9, 2026 7:19am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
api-reference Skipped Skipped Feb 9, 2026 7:19am
entropy-explorer Skipped Skipped Feb 9, 2026 7:19am
insights Skipped Skipped Feb 9, 2026 7:19am
proposals Skipped Skipped Feb 9, 2026 7:19am
staking Skipped Skipped Feb 9, 2026 7:19am

Request Review

- `priceFeedIds` is the list of price feeds to receive price data for. It will also include the verified payloads for the price feeds. Refer to the [Price Feed IDs list](/price-feeds/pro/price-feed-ids) for the supported price feeds.
- `properties` is the list of properties to retrieve, such as **price**, **bestBidPrice**, **bestAskPrice**, etc.
- `formats`(formerly known as `chains`) is the list of chains to receive a signed payload for, such as **evm**, **solana**, etc.
- `formats`(formerly known as `chains`) specifies the binary encoding format for the payload. This field is mandatory, but can be set to an empty array (e.g., `formats: []`) if no binary payload is needed. Use **evm** or **solana** to receive a signed payload for onchain verification, or **leUnsigned** for offchain-only use without signatures. See [Binary Formats & Signature Schemes](#binary-formats--signature-schemes) for all options.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clicking on the hyperlinks takes me to same page, it should take to the relevant page and section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed — the anchor was pointing to a section on the same page that doesn't exist. Updated the link to /price-feeds/pro/payload-reference#binary-formats--signature-schemes so it navigates to the Binary Formats section on the Payload Reference page.

…ge anchor

Co-Authored-By: Nidhi Singh <nidhi2894@gmail.com>
@nidhi-singh02 nidhi-singh02 merged commit b929eb8 into main Feb 9, 2026
10 checks passed
@nidhi-singh02 nidhi-singh02 deleted the devin/1770620852-improve-formats-description branch February 9, 2026 09:06
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