interledger-pay icon indicating copy to clipboard operation
interledger-pay copied to clipboard

Create wallet address sends `address`, but Rhyza requires `pathName`

Open linear[bot] opened this issue 1 month ago • 1 comments

Problem

Rhyza changed POST /wallet-addresses in its Admin API (interledger/rhyza#322, rhyza#338, Admin API 0.0.17). The request body now has pathName, not address.

  • pathName is one path segment, for example alice.
  • Rhyza answers 400 when pathName is missing.
  • Rhyza answers 400 when pathName contains / or ://.

The wallet backend still sends the full URL in address:

Impact

With a Rhyza build that includes interledger/rhyza#322, every wallet address creation fails with 400. These flows fail:

  • Onboarding. On approval, gatehub/service.ts creates the default EUR account and its wallet address.
  • Add wallet address on an account.

No Rhyza release includes interledger/rhyza#322 yet. The latest release is v1.0.0-alpha (15 October). The local stack uses a release tag (local/.env.example). The failure starts at the next Rhyza release. It also occurs when you run Rhyza from main.

Fix

  1. Send pathName: args.walletAddressName. Do not send address.
  2. Change CreateWalletAddressArgs in rhyza/admin-client.ts to match.
  3. Remove the comment "Rhyza returns the address without a scheme" (walletAddress/service.ts:148).

Rhyza answers address as a full URL: the Open Payments base URL, then the path name. The backend can build url itself, as it does now. It can also store response.address.

Note: Rhyza finds a wallet address by its path name only (interledger/rhyza#373, rhyza#383). Thus a full URL in walletAddress on POST /payment-intents continues to work. Rhyza takes the path name from the URL.

Found at

testnet v1 @ 71e6f304, Rhyza main @ 5e206fcf.

linear[bot] avatar Oct 30 '26 09:10 linear[bot]

Hey can I take this one up?

addu2612 avatar Oct 30 '26 12:10 addu2612