Skip to content

LLM:DeepLinking

Alexandre Chabrolin edited this page Feb 14, 2023 · 18 revisions

Deep Linking 🔗

Full documentation is available here


Several URI schemes are available for deep linking from external sources They all are prefixed by ledgerlive://

Some routes allow you to use query params to pass additional context.

⚠️ You should not use anchor tag inside your deeplink ⚠️

This is especially true for discover / platform related deeplinks (cf. discover entries bellow)

Keep in mind that everything after an anchor tag is client side (in this case Ledger Live) and will then not be forwarded to the platform app (even query params). Have a look at this resource for more context.

  • portfolio 🠒 Portfolio page (default landing)

    ledgerlive:// or ledgerlive://portfolio

  • account?currency 🠒 Account Page

    ledgerlive://account will redirect to accounts page

    ledgerlive://account?currency=btc will open first bitcoin account found

    ?currency param can be name or ticker of the currency targeted

    ledgerlive://accounts?currency={{currency}}&address={{my_address}} should redirect to the corresponding account page if address matching an account is found, if not it falls back to the {{currency}} asset page

  • send?currency 🠒 Send Flow

    ledgerlive://send will redirect to send page

    ledgerlive://send?currency=ethereum will redirect to send page with ethereum accounts search prefilled

  • receive?currency 🠒 Receive Flow

    ledgerlive://receive will redirect to receive page

    ledgerlive://receive?currency=ethereum will redirect to receive page with ethereum accounts search prefilled

  • buy/:currency 🠒 Buy Crypto Flow

    ledgerlive://buy will redirect to buy page

    ledgerlive://buy/bitcoin will redirect to buy page with bitcoin accounts search prefilled

  • sell/:currency 🠒 Sell Crypto Flow

    ledgerlive://sell will redirect to sell page

    ledgerlive://sell/bitcoin will redirect to sell page with bitcoin accounts search prefilled

  • manager 🠒 Manager page

    ledgerlive://manager will redirect to manager page

    ledgerlive://manager?installApp=bitcoin will redirect to manager page with "bitcoin" app search prefilled

  • swap 🠒 Swap Crypto Flow

    ledgerlive://swap will redirect to swap page

  • discover 🠒 Live discover catalog

    ledgerlive://discover will redirect to discover page

  • discover/:APP_ID?params... 🠒 Live discover catalog

    ledgerlive://discover/paraswap?accountId=1 will redirect to the discover catalog page of paraswa with a pre-selected first account

      - *APP_ID* => the url param app id
      - *?params* => the url query params that will be transmitted to the app, you should refer to each apps documentation in order to use them.
    

Testing on android in order to test in debug your link run using adb

  adb shell am start -W -a android.intent.action.VIEW -d "ledgerlive://{{YOUR_URL}}" com.ledger.live.debug

Testing on ios in order to test your link run using xcrun

  xcrun simctl openurl booted ledgerlive://{{YOUR_URL}}

Testing through browser

run

pnpm mobile test-deep-links

Then go to the provided link in order to see a test web page. For this either

  • redirect the :8000 port on your chrome remote device settings
  • use adb reverse tcp:8000 tcp:8000
  • use the network link provided by the command.
Clone this wiki locally