Developer Questions

Ask a Question
Back to All

How to construct oauth2 URL to open Xaman UI at specific Account and Network (XRPL instead of Xahau)?

Issue Description:

Would it be feasible to construct the oauth2 URL to open Xaman Wallet UI at specific Account and Network (XRPL instead of Xahau), such that the user does not need to switch network in Xaman and switch to the correct account, for signing tx or sign-in?

Example Constructed URL:
We are constructing the URL as follows to initiate the sign-in process:
https://oauth2.xumm.app/auth?client_id=xxxx&redirect_uri=https://xxx.app/Signin/?signin=X&response_type=token&network_type=xrpl&TransactionType=SignIn&xrplAddress=xxxx

Note: xrplAddress and network_type are our internal parameter.

Expected Behavior:

The Xaman app should open with the xrpl network preselected (in accordance with URL construct parameters). Open Xaman Wallet UI at specific account via passing xrplAddress.

Actual Behavior:

The Xaman app defaults to the last-used network e.g., Xahau instead of e.g. XRPL.
The Xaman app opens on the previously used account, not the specified xrplAddress.

Observations:
The URL successfully opens the Xaman app but unclear which parameters can be passed to redirect to specific account and network in Xaman UI. It would be however, more user-friendly if feasible, hence we hope we can pass additional parameters in the URL construct to make this feasible.

Thank you in advance.

Kind regards,

Roy