Create wallet address sends `address`, but Rhyza requires `pathName`
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.
pathNameis one path segment, for examplealice.- Rhyza answers
400whenpathNameis missing. - Rhyza answers
400whenpathNamecontains/or://.
The wallet backend still sends the full URL in address:
walletAddress/service.ts:132sendsaddress: url. The value ofurlis${OPEN_PAYMENTS_HOST}/${walletAddressName}.rhyza/admin-client.ts:15types the request as{ address, assetCode, publicName, isActive? }.
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.tscreates 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
- Send
pathName: args.walletAddressName. Do not sendaddress. - Change
CreateWalletAddressArgsinrhyza/admin-client.tsto match. - 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.
Hey can I take this one up?