Skip to content

chore(sdk-examples): update Go SDK RPC client import paths#2500

Merged
ElliotFriend merged 2 commits into
mainfrom
chore/sdk-examples-go-v0.6.0
Jun 16, 2026
Merged

chore(sdk-examples): update Go SDK RPC client import paths#2500
ElliotFriend merged 2 commits into
mainfrom
chore/sdk-examples-go-v0.6.0

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

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.

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>
Copilot AI review requested due to automatic review settings June 15, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/rpcclient and RPC protocol types from github.com/stellar/go-stellar-sdk/protocols/rpc, preserving existing identifiers via import aliases.
  • Removed the redundant go get github.com/stellar/stellar-rpc@latest step from the Go setup instructions.
  • Repointed documentation links for the RPC client, ingest/processors, token-transfer protobuf paths, and stellar-archivist to 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.

Comment thread docs/tools/sdks/client-sdks.mdx Outdated
@stellar-jenkins-ci

Copy link
Copy Markdown

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ElliotFriend ElliotFriend requested a review from Shaptic June 15, 2026 16:05
@stellar-jenkins-ci

Copy link
Copy Markdown

@Shaptic Shaptic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lg!

@ElliotFriend ElliotFriend merged commit 6ee841f into main Jun 16, 2026
9 checks passed
@ElliotFriend ElliotFriend deleted the chore/sdk-examples-go-v0.6.0 branch June 16, 2026 14:42
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>
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.

3 participants