Part III – Test the LiveApp in Ledger Live | Developers

Part III – Test the LiveApp in Ledger Live

Estimated reading time: 4 minutes

Prerequisite

yarn dev must (still) be running in a terminal. (See General Prerequisites, part 3)

1- Fetch the messages

  1. Verify the Mock Account is selected.
  2. Verify the latest messages are displayed (Done automatically)

2 & 3- Sign and Post EIP-712-typed data

  1. Enter a new message in the text field
  2. Click on the arrow, to send the message
  3. In the Sign message modal that opens, the parts of the message fileds can be verified if necessary
    • a. Click on Continue (or close the modal to terminate the operation)
    • b. The Sign message modal is updated: Click on “Open in Sandbox mode with Metamask
  4. In the browser, a Signature Request modal opens. Signing this Message can be dangerous if real assets are involved.
    • a. Click on the Sign Button (or Cancel to terminate the operation)
    • b. Click on Disconnect (Top Left). “This site cannot be reached” is displayed. This is normal.
  5. Back in Ledger Live, in the Sign transaction modal
    • a. Check the data in the modal
    • b. Click on Continue (or close the modal to terminate the operation)
    • c. The Sign transaction modal is updated:
      • Click on “Open in Sandbox mode with Metamask
      • Or, wait 30 seconds, without clicking
  6. In the browser, a Signature Request modal opens. Signing this Message can be dangerous if real assets are involved.
    • a. Click on the Sign Button (or Cancel to terminate the operation)
    • b. Click on Disconnect (Top Left). “This site cannot be reached” is displayed. This is normal.
  7. Back in Ledger Live, under the Write a message field,
    • a. Verify the Message is sent (Green message)
    • b. Click Refresh
    • c. Verify the Message is now in the History list
Note
On goerli.etherscan.io verify the transaction, using the address of Step #1

4 & 5- ‘Like’ by signing the EIP-191 message

  1. Click on the heart of a message From 3.a to 6.b inclusive, above. (Except for the Warning in step 4)
  2. Back in Ledger Live,
    • a. Wait a few moments before clicking Refresh (See note below)
    • b. Verify that the Heart is updated
Note
The transaction takes time for the network to be updated. On goerli.etherscan.io verify the transaction, using the address of Step #1

6- Tip an author via a transaction

  1. Click on the Tip of a message From 3.a to 4.C inclusive, above.
Note
On goerli.etherscan.io verify the transaction, using the address of Step #1

Video

  • Launching Nano-less Ledger Live (at 00:00)
  • Activate Developer Tab (at 00:50)
  • Load Manifest (at 00:58)
  • Select Developer Mode (at 01:28)
  • Choose account and open the Live App (at 01:38)
  • Create & sign message (at 02:11)
  • Like & Tip (at 03:00)

Next steps

Note that the little test DApp we created for this workshop is very inefficient. For example, fetching the messages by directly calling a method on the smart contract is not the best way to do it. You could use an API between your DApp and the associated smart contract, such as The Graph, to access the relevant data more quickly. Same thing for the whole post creation and liking. If you are interested in learning more about building and integrating on top of Ledger Live, check out the following resources: Nano App to get your blockchain supported on Nano S/X/S Plus Blockchain support to get your currency supported on Ledger Live. Live App to turn your DApp or regular app into a Live App in Ledger Live Connect your app to support a Nano on your desktop/web app


Did you find this page helpful?


How would you improve this page for developers?



Part II - Let’s add the DApp to Ledger Live
Getting Started
Theme Features
Customization

Live App