Skip to content

exch: Migrate Thorchain endpoints off NineRealms#453

Merged
j0ntz merged 1 commit intomasterfrom
jon/thorchain-migrate-ninerealms
Apr 18, 2026
Merged

exch: Migrate Thorchain endpoints off NineRealms#453
j0ntz merged 1 commit intomasterfrom
jon/thorchain-migrate-ninerealms

Conversation

@j0ntz
Copy link
Copy Markdown
Contributor

@j0ntz j0ntz commented Apr 17, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

Asana task

Migrates Thorchain swap endpoints off *.ninerealms.com — those hosts are being retired on 2026-04-20 (they already return 301). Without this change Thorchain swap quoting and the order-tracking link will break.

Changes:

  • src/swap/defi/thorchain/thorchain.ts
    • orderUri: track.ninerealms.com/{TXID}track.thorchain.org/{TXID} (same path format, tx lookups return 200)
    • THORNODE_SERVERS_DEFAULT[0]: thornode.ninerealms.com/thorchaingateway.liquify.com/chain/thorchain_api/thorchain (Liquify's new primary endpoint)
  • scripts/synchronizers/thorchain/thorchainSynchronizer.ts
    • Fallback Midgard server 0: midgard.ninerealms.comgateway.liquify.com/chain/thorchain_midgard

Kept intact (intentional):

  • ninerealmsClientId init option + x-client-id header — the new Liquify endpoints accept the header without issue; stripping it is a larger-surface config change for a separate PR.
  • midgard.thorchain.info as a fallback — not on ninerealms.

Stagenet and thorchainrune currency / Savers endpoints are handled in the sibling PRs in edge-currency-accountbased and edge-react-gui.

Asana parent: https://app.asana.com/1/9976422036640/project/1213843652804305/task/1214109247963126

Testing

Verified new endpoints with curl + existing ninerealmsClientId:

  • gateway.liquify.com/chain/thorchain_api/thorchain/network → 200 OK
  • gateway.liquify.com/chain/thorchain_midgard/v2/health → 200 OK
  • track.thorchain.org/<txid> → 200 OK
  • All *.ninerealms.com now return 301

Reviewer should confirm swap quotes + order tracker link open correctly on a mainnet Thorchain swap.


Note

Medium Risk
Endpoint changes affect swap quoting, order-tracking links, and mapping sync; risk is mostly around availability/compatibility of the new upstream hosts and any subtle URL/path differences.

Overview
Migrates the Thorchain swap plugin and Thorchain mapping synchronizer off retiring *.ninerealms.com hosts.

Updates the default Thornode API base URL to Liquify’s gateway, switches the order-tracking orderUri to track.thorchain.org, and replaces the synchronizer’s primary Midgard fallback with Liquify’s Midgard gateway. Adds a corresponding Unreleased changelog entry.

Reviewed by Cursor Bugbot for commit fdb254d. Bugbot is set up for automated code reviews on this repo. Configure here.

@j0ntz j0ntz merged commit 9e3d743 into master Apr 18, 2026
3 checks passed
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