chore(sdk-examples): update Go SDK RPC client import paths#2500
Merged
Conversation
As of go-stellar-sdk v0.6.0 / stellar-rpc v27.0.0, the Go RPC client moved out of the stellar-rpc repo and into the Go SDK: - github.com/stellar/stellar-rpc/client -> github.com/stellar/go-stellar-sdk/clients/rpcclient (package rpcclient) - github.com/stellar/stellar-rpc/protocol -> github.com/stellar/go-stellar-sdk/protocols/rpc (package protocol) Both old paths are 404 at the current tags. - Update the 8 import sites across the create-account, send-and-receive-payments, sponsored-reserves, and claimable-balances transaction guides, preserving each file's existing package identifiers (client/sdk/protocol) via aliases so the code bodies stay valid. - Drop the now-redundant `go get github.com/stellar/stellar-rpc@latest` line; the client ships in go-stellar-sdk. - Fix the RPC Go client link and the RPC Client entry on the client-sdks page (both pointed at the removed stellar-rpc/client path). - Repoint ingest/processors links to the relocated top-level processors package (incl. the token_transfer protobuf path). - Point the stellar-archivist link at go-stellar-sdk (was the archived stellar/go), matching the sibling publishing-history-archives guide. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Stellar Docs to reflect the Go RPC client relocation from stellar-rpc into go-stellar-sdk, ensuring code samples and documentation links remain valid at current tags/versions.
Changes:
- Updated Go code snippets to import the RPC client from
github.com/stellar/go-stellar-sdk/clients/rpcclientand RPC protocol types fromgithub.com/stellar/go-stellar-sdk/protocols/rpc, preserving existing identifiers via import aliases. - Removed the redundant
go get github.com/stellar/stellar-rpc@lateststep from the Go setup instructions. - Repointed documentation links for the RPC client, ingest/processors, token-transfer protobuf paths, and
stellar-archivistto their new locations.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/validators/admin-guide/running-node.mdx | Updates stellar-archivist link to its location in go-stellar-sdk. |
| docs/tools/sdks/client-sdks.mdx | Fixes Go “RPC Client” SDK/docs links to the new go-stellar-sdk package. |
| docs/data/indexers/build-your-own/processors/token-transfer-processor/README.mdx | Updates token transfer processor and protobuf definition links to the relocated processors paths. |
| docs/data/indexers/build-your-own/ingest-sdk/developer_guide/ledgerbackends/rpcledgerbackend.mdx | Repoints the “RPC Go Client” link to go-stellar-sdk/clients/rpcclient. |
| docs/data/indexers/build-your-own/ingest-sdk/developer_guide/ledgerbackends/bufferedstoragebackend.mdx | Updates the processors link to the new top-level processors path. |
| docs/data/indexers/build-your-own/ingest-sdk/developer_guide/architecture.mdx | Updates the processors link to the new top-level processors path. |
| docs/build/guides/transactions/sponsored-reserves.mdx | Updates Go RPC client/protocol imports to the new go-stellar-sdk locations. |
| docs/build/guides/transactions/send-and-receive-payments.mdx | Updates Go RPC client/protocol imports and removes redundant go get stellar-rpc instruction. |
| docs/build/guides/transactions/create-account.mdx | Updates Go RPC client/protocol imports to the new go-stellar-sdk locations. |
| docs/build/guides/transactions/claimable-balances.mdx | Updates Go RPC client/protocol imports to the new go-stellar-sdk locations across multiple snippets. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Preview is available here: |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Preview is available here: |
zachfedor
pushed a commit
to zachfedor/stellar-docs
that referenced
this pull request
Jun 18, 2026
) * chore(sdk-examples): update Go SDK RPC client import paths As of go-stellar-sdk v0.6.0 / stellar-rpc v27.0.0, the Go RPC client moved out of the stellar-rpc repo and into the Go SDK: - github.com/stellar/stellar-rpc/client -> github.com/stellar/go-stellar-sdk/clients/rpcclient (package rpcclient) - github.com/stellar/stellar-rpc/protocol -> github.com/stellar/go-stellar-sdk/protocols/rpc (package protocol) Both old paths are 404 at the current tags. - Update the 8 import sites across the create-account, send-and-receive-payments, sponsored-reserves, and claimable-balances transaction guides, preserving each file's existing package identifiers (client/sdk/protocol) via aliases so the code bodies stay valid. - Drop the now-redundant `go get github.com/stellar/stellar-rpc@latest` line; the client ships in go-stellar-sdk. - Fix the RPC Go client link and the RPC Client entry on the client-sdks page (both pointed at the removed stellar-rpc/client path). - Repoint ingest/processors links to the relocated top-level processors package (incl. the token_transfer protobuf path). - Point the stellar-archivist link at go-stellar-sdk (was the archived stellar/go), matching the sibling publishing-history-archives guide. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As of go-stellar-sdk v0.6.0 / stellar-rpc v27.0.0, the Go RPC client moved out of the stellar-rpc repo and into the Go SDK:
github.com/stellar/stellar-rpc/client -> github.com/stellar/go-stellar-sdk/clients/rpcclient (package rpcclient)
github.com/stellar/stellar-rpc/protocol -> github.com/stellar/go-stellar-sdk/protocols/rpc (package protocol)
Both old paths are 404 at the current tags.
Update the 8 import sites across the create-account, send-and-receive-payments, sponsored-reserves, and claimable-balances transaction guides, preserving each file's existing package identifiers (client/sdk/protocol) via aliases so the code bodies stay valid.
Drop the now-redundant
go get github.com/stellar/stellar-rpc@latestline; the client ships in go-stellar-sdk.Fix the RPC Go client link and the RPC Client entry on the client-sdks page (both pointed at the removed stellar-rpc/client path).
Repoint ingest/processors links to the relocated top-level processors package (incl. the token_transfer protobuf path).
Point the stellar-archivist link at go-stellar-sdk (was the archived stellar/go), matching the sibling publishing-history-archives guide.