Skip to content

[docs-agent] UTXO API: hardcode chain-specific server URLs (no network dropdown)#1310

Closed
JackReacher0807 wants to merge 1 commit into
mainfrom
docs/utxo-hardcode-server-urls
Closed

[docs-agent] UTXO API: hardcode chain-specific server URLs (no network dropdown)#1310
JackReacher0807 wants to merge 1 commit into
mainfrom
docs/utxo-hardcode-server-urls

Conversation

@JackReacher0807
Copy link
Copy Markdown
Collaborator

@JackReacher0807 JackReacher0807 commented May 19, 2026

Summary

On the Bitcoin Cash, Litecoin, and Dogecoin UTXO API method pages, the rendered Server field exposed a network-picker dropdown because each per-chain spec used a templated https://{network}.g.alchemy.com/v2 server URL with a network enum. Andra reported that even after PR #1302 restricted each chain's enum to that chain's own mainnet/testnet, the dropdown UI itself was still a distraction.

This PR collapses each per-chain UTXO spec down to a single literal server URL (no variables, no enum, no dropdown):

Chain Spec Server URL
Bitcoin Cash src/openapi/utxo-bitcoincash/utxo-bitcoincash.yaml https://bitcoincash-mainnet.g.alchemy.com/v2
Litecoin src/openapi/utxo-litecoin/utxo-litecoin.yaml https://litecoin-mainnet.g.alchemy.com/v2
Dogecoin src/openapi/utxo-dogecoin/utxo-dogecoin.yaml https://dogecoin-mainnet.g.alchemy.com/v2

Trade-off

Testnet variants (bitcoincash-testnet, litecoin-testnet) are dropped from the spec. Testnet users can swap the host manually in curl. The OpenAPI source still documents the path shapes correctly; only the host picker UI is removed.

Out of scope

  • Bitcoin UTXO pages: the shared src/openapi/utxo/utxo.yaml is intentionally untouched. It still exposes the 7-network enum on the Bitcoin page. If reviewers want BTC pages to follow the same single-URL pattern, that's a follow-up.

Validation

  • pnpm run validate:rest — all three modified specs validate cleanly.

Linear

DOCS-83

Requested by

@andra-catana (via Slack thread)

@JackReacher0807 JackReacher0807 requested a review from a team as a code owner May 19, 2026 13:40
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 59cc35c88f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +382 to +383
Broadcasts a signed raw Bitcoin transaction encoded as a hex string in the path. Returns
the transaction ID on success. The example value below is the hex of a confirmed Bitcoin
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove non-Bitcoin networks from Bitcoin UTXO spec

This Bitcoin-specific sendtx copy is still in the generic utxo spec, whose servers block still exposes bitcoincash-*, litecoin-*, and dogecoin-mainnet choices; content/docs.yml also still routes the Bitcoin UTXO page to api-name: utxo. In the rendered Bitcoin UTXO reference, users can therefore select a non-Bitcoin network but see/send Bitcoin-specific examples and guidance, so the original network-dropdown problem remains on this page rather than being fully hardcoded to Bitcoin.

Useful? React with 👍 / 👎.

…k dropdown)

On the Bitcoin Cash, Litecoin, and Dogecoin UTXO API method pages,
the rendered `Server` field currently exposes a dropdown of network
variants (mainnet/testnet) because the per-chain specs use a templated
`https://{network}.g.alchemy.com/v2` server URL with a `network` enum.
Even after the per-chain split (PR #1302) restricted each chain's enum
to that chain's own networks, the dropdown UI remained.

This change collapses each per-chain spec down to a single literal
server URL (`https://<chain>-mainnet.g.alchemy.com/v2`), removing the
dropdown entirely. Users now see exactly one hardcoded URL per chain
on every UTXO method page, matching Andra's requested behavior.

Testnet variants are dropped from the spec — users who need testnet
can swap the host manually in curl. The BTC shared spec
(`src/openapi/utxo/utxo.yaml`) is intentionally untouched in this
commit; it still exposes the 7-network enum.

Refs DOCS-83

Requested-by: @andra-catana
@JackReacher0807 JackReacher0807 force-pushed the docs/utxo-hardcode-server-urls branch from 59cc35c to 8b64401 Compare May 19, 2026 16:04
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview May 19, 2026, 4:05 PM

@github-actions
Copy link
Copy Markdown

🔍 Link Check

Status: ⏭️ Skipped (no content changes)

View workflow run

@SahilAujla
Copy link
Copy Markdown
Collaborator

we decided to cancel this!

@SahilAujla SahilAujla closed this May 19, 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