Ledger Nano Integration

Ledger Nano is a hardware device that allows users to send and receive transactions using this hardware wallet. To work with Antlia testnet ledger nano should be connected with a light client to process transactions.

Requirements

  • Install ledger live

  • Install ledger Nano

Backend Setup

After installing ledger nano live , if it is your new device, initialize it as a new device and follow the 5 steps in the ledger live menu .

If the process get stuck at:

  • connect and unlock your ledger device

  • navigate through your dashboard

Follow these commands to configure ledger with ledger live

1. Setup

  • Check if the plugdev group exists by entering the command:

cat /etc/group | grep plugdev
  • Check if the plugdev group exists by entering the command:

cat /etc/group | grep plugdev

FOLLOW THE STEPS BELOW IF THE PREVIOUS COMMAND DID NOT RETURN A RESULT

  • Create the plugdev group:

sudo groupadd plugdev
  • Check if you are in the group plugdev with the command:

group
  • If the output does not contain plugdev, you are not in the plugdev group. Enter the command:

sudo gpasswd -a <user> plugdev

NOTE: REPLACE <USER> BY YOUR USERNAME, E.G FOR USER "MIKE", IT WOULD BE: SUDO GPASSWD -A MIKE PLUGDEV.

  • Logout and login for the change to take effect. To verify you are now in the plugdev group, enter:

groups
  • and search for a plugdev occurrence. If it's not there, you've missed a step and should restart from step 1.

2. Add the udev rules

  • Enter the following command to automatically add the rules and reload udev:

wget -q -O - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash
  • Retry connecting your Ledger Nano S with Ledger Live.

IF IT'S STILL NOT WORKING, CONTINUE TO STEP 3

3. Troubleshooting

Try each of the following three options.

Option 1

  • Edit the file /etc/udev/rules.d/20-hw1.rulesfile by adding the OWNER="<user>" parameter to each line, where <user> is your Linux user name. Then reload the rules as follows:

udevadm trigger
udevadm control --reload-rules
  • Retry the connection with Ledger Live. If it does not work, try the next option.

Option 2

  • Edit the /etc/udev/rules.d/20-hw1.rules file and add the following lines:

KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="plugdev", ATTRS{idVendor}=="2c97"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="plugdev", ATTRS{idVendor}=="2581"
  • Then reload the rules:

udevadm trigger
udevadm control --reload-rules
  • Retry connecting with Ledger Live. If it does not work yet, try the last option.

Option 3

  • If you are on Arch Linux, you can try the following rules:

/etc/udev/rules.d/20-hw1.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="2b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="3b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="4b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1807", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1808", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0000", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", TAG+="uaccess", TAG+="udev-acl”
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0004", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
  • Then reload the rules again and retry the connection with Ledger Live:

udevadm trigger
udevadm control --reload-rules

Still not working after following all the steps correctly? Please contact ledger support.

After that

Allow the ledger manager on your device by pressing the right button on the ledger. This will open ledger live dashboard for you.

Install Antlia App

Follow these steps to install antlia app on your device. - unlock your device by providing pin - go to settings on top right corner and select Experimental Features - check on developer mode - got to manager in ledger live left navigation bar search for antlia - install updated version by clicking install button - this will install antlia app on your ledger device

Frontend Setup

Connect your Antlias with wallet server, and follow these steps

Sign in using ledger nano:

To sign in using ledger nano you will have to:

  • unlock ledger device by entering pin code

  • open antlia app in ledger device else you cannot sign in .

  • After successful signup you will see your dashboard

  • open wallet in left navigation bar in wallet server

  • fill out the form for transaction sender address amountand gas

  • sign the transaction using ledger device by pressing right button on ledger on sign transactionoption.

  • you have successfully sent a valid transaction.