Estimated reading time: 4 minutes
Prerequisite
yarn dev
must (still) be running in a terminal. (See General Prerequisites, part 3)
1- Fetch the messages
- Verify the Mock Account is selected.
- Verify the latest messages are displayed (Done automatically)
2 & 3- Sign and Post EIP-712-typed data
- Enter a new message in the text field
- Click on the arrow to send the message
- In the Sign message modal that opens, the parts of the message fields 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”
- 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.
- 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
- 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.
- 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
4 & 5- ‘Like’ by signing the EIP-191 message
- Click on the heart of a message
From 3.a to 6.b inclusive, above. (Except for the Warning in step 4)
- 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
- Click on the Tip of a message
From 3.a to 4.c inclusive, above.
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 an 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:
Embedded 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