Keystone Support
Official WebsiteCoin SupportBlogContact Us
English
English
  • 🧰Advice and Answers from Keystone Team
  • General Navigation Guide
  • About Keystone
  • ChangeLog
    • Keystone Firmware (Multi-Coin)
      • M-13.0(Multi-Coin)
      • M-12.6 (Multi-Coin)
      • M-12.4 (Multi-Coin)
      • M-12.2 (Multi-Coin)
      • M-12.0(Multi-Coin)
      • M-11.0(Multi-Coin)
      • M-10.8(Multi-Coin)
      • M-10.6(Multi-Coin)
      • M-10.4(Multi-Coin)
      • M-10.2(Multi-Coin)
      • M-10.0(Multi-Coin)
      • M-9.6(Multi-Coin)
      • M-9.4(Multi-Coin)
      • M-9.2(Multi-Coin)
      • M-8.8(Multi-Coin)
      • M-8.4(Multi-Coin)
      • M-8.2(Multi-Coin)
      • M-8.0 (Multi-Coin)
      • M-7.2 (Multi-Coin)
      • M-7.0 (Multi-Coin)
      • M-6.10 (Multi-Coin)
      • M-6.8 (Multi-Coin)
      • M-6.6 (Multi-Coin)
      • M-6.4 (Multi-Coin)
      • M-6.2 (Multi-Coin)
      • M-6.0 (Multi-Coin)
      • M-5.4 (Multi-Coin)
      • M-5.3 (Multi-Coin)
      • M-5.2 (Multi-Coin)
      • M-5.0 (Multi-Coin)
      • V 1.4.2 (Multi-Coin)
      • V 1.4.0 (Multi-Coin)
      • V 1.3.0 (Multi-Coin)
      • V 1.2.0 (Multi-Coin)
      • V 1.1.0 (Multi-Coin)
    • Keystone Firmware (BTC-Only)
      • B-3.6 (BTC-Only)
      • B-3.4 (BTC-Only)
      • B-3.2 (BTC-Only)
      • B-2.5 (BTC-Only)
      • B-2.0 (BTC-Only)
      • V 1.1.1 (BTC-Only)
    • Keystone Companion App
      • V1.2.3
      • V1.2.2
      • V1.2.1
      • V 1.1.2
      • V 1.1.0
      • ERC-20 Token Delisting
  • Getting Started
    • Setting Up Keystone (Legacy)
    • Setting Up Keystone (New)
    • Firmware Upgrade
      • How to Format a MicroSD Card to FAT32?
      • Verify the SHA256 Checksum of the Firmware Update File
    • Getting Started with M-10.0 or newer for Beginners
    • Keystone Mobile App Syncing
    • Receiving Cryptocurrency
    • Sending Cryptocurrency
  • Basic Features
    • Password
      • Setting Pattern Lock
      • Fingerprint Settings(Pro only)
      • Forgot or Reset a Password or Pin
    • Add Multiple Addresses
    • Add Tokens on the Mobile APP
    • Add labels to Address
    • View Transaction Details
    • Set System Settings
    • Wipe the Device
  • 3rd Party Integrations
    • Bitcoin Wallets
      • Casa
      • Enhance the security of BlueWallet
        • BlueWallet 2/3 PSBT Multi-sig: BlueWallet + Keystone + ColdCard
        • BlueWallet 2/3 PSBT Multi-sig: Keystone + ColdCard + SeedPicker
      • Specter
        • Specter 2/2 PSBT Multi-Sig
        • Specter 2/3 PSBT Multi-Sig
      • Sparrow Wallet
        • Sparrow Wallet 2/3 PSBT Multi-sig
      • Electrum
        • Electrum 2/2 PSBT Multi-sig
        • Electrum 2/3 PSBT Multi-sig
      • Wasabi Wallet
      • BTCPay Server
      • Nunchuk
      • Simple Bitcoin Wallet
    • ETH & Web3 Wallets
      • MetaMask
        • MetaMask & DeFi
        • Importing MetaMask Wallet into Keystone
        • Potential Trouble with Importing MetaMask wallet into Keystone
        • Importing Your Ledger Wallet/Account into Your Keystone Hardware Wallet
        • How to Switch ETH Path to Ledger Live / Legacy Format?
        • Configure EVM Chains on MetaMask
      • MetaMask Mobile
        • Defi with MetaMask Mobile
        • Configuring EVM Chains on MetaMask Mobile
      • OKX Wallet (Extension)
      • OKX Wallet Mobile
      • Bitget
      • Rabby Wallet
      • Core Wallet (Extension)
      • BlockWallet
      • Polkadot{.js} (DOT/KSM)
        • DOT/KSM Staking
    • Aptos Wallets
      • Fewcha Wallet (Extension)
      • Petra Aptos Wallet (Extension)
    • Arweave Wallets
      • 🦔ArConnect
    • Cosmos Wallets
      • Keplr (Extension)
        • How to Make IBC Transfers with Keystone
    • NEAR Wallets
      • Sender Wallet (Extension)
      • How to switch Near Path to Ledger format?
    • Polkadot Wallets
      • SubWallet
      • Metadata Update or Reset
    • Solana Wallets
      • Solflare Extension
      • Solflare Mobile
    • Dapp (DeFi)
      • Safe
      • Safe Mobile App
      • Zapper
      • Yearn Finance
      • SushiSwap
    • Other Coins
      • XRP Toolkit (XRP)
  • Advanced Features
    • Displaying Your NFT on the Lock Screen
    • Three BTC Address Formats Support
    • Change the derivation path of addresses
    • Export XPUB
    • Displaying ENS Names
    • Multi Signature
      • Delete Multisig Wallet
    • Staking
    • Decoding DeFi Transactions
    • Decoding Multi-Signature Transactions
    • Decoding 4-byte Function Signature
    • Recovery Phrase
      • Construct Your Own Recovery Phrase
      • Import or Create Shamir Backup
      • Use Dice to Generate Recovery Phrase
      • Recovery Phrase Check
      • Recover your Ledger Wallet
    • Passphrase
    • Self-Destruct Mechanism (Pro-only)
  • Miscellaneous
    • Security Practices
    • FAQ
    • Cobo Vault Companion App
    • Migrating from the Keystone Companion App to OKX: A Step-by-Step Guide
  • Keystone Tablet
    • Keystone Tablet Instruction Guide
    • Why does the Keystone Tablet have only 4 slots for a word?
Powered by GitBook
On this page
  • I. Preparation
  • II. Connect Uniswap to "MetaMask Extension”
  • III. Swap from ETH to Tokens (e.g. USDT)
  • IV. Swap from Tokens to ETH/Tokens
  • 1. Approve
  • 2. Swap
  • V. Add Liquidity (e.g. ETH + UNI)
  • 1. Approve
  • 2. Supply
  • VI. Remove Liquidity
  • 1. Approve
  • 2. Remove

Was this helpful?

  1. 3rd Party Integrations
  2. ETH & Web3 Wallets
  3. MetaMask

MetaMask & DeFi

This tutorial explains how to use your Keystone & MetaMask to interact with DeFi platforms (dapps) using Uniswap as an example. The same method would apply for other dapps.

PreviousMetaMaskNextImporting MetaMask Wallet into Keystone

Last updated 2 years ago

Was this helpful?

I. Preparation

1. version M-5.0 (Multi-Cion) running on Keystone Essential or Pro.

(Please read for more details.)

2. Bind MetaMask extension V10.8.0 or newer with the Keystone Hardware Wallet ().

3. Uniswap: .

II. Connect Uniswap to "MetaMask Extension”

1. Visit Uniswap website: . Switch to the [Swap] tab and click [Connect wallet].

2. Select [MetaMask] as your wallet, Then click [Next] to connect.

3. Uniswap should now be successfully connected with your MetaMask (Keystone account).

III. Swap from ETH to Tokens (e.g. USDT)

1. Select a Token (e.g. USDT) and set the amount you want to swap, then click [Swap].

2. Confirm the transaction details and click [Confirm Swap].

3. Click [Confirm] on MetaMask Extension to get the unsigned transaction data in QR code format.

4. Keystone: Touch the “Scan” icon and scan the QR code shown on MetaMask Extension.

5. Confirm the transaction details on Keystone Hardware Wallet. Touch [Sign] and enter the password to verify. Get the signed transaction data in QR code format.

6. Click [Get Signature] on MetaMask Extension and scan the QR code shown on the Keystone device.

7. Transaction submitted automatically after the scanning is finished.

IV. Swap from Tokens to ETH/Tokens

1. Approve

If it is the first time you are swapping from Token A to ETH or Token B, you will be required to authorize [Approve] the third party (e.g. the smart contract of Token A) to spend Token A in your wallet before you can [Swap].

1) Uniswap: Select the coin type and set the amount you want to swap. Click [Approve]. Then click [Confirm] on MetaMask Extension to get the unsigned transaction data in QR code format.

2) On Keystone: Touch the “scan” icon and scan the QR code that is shown on MetaMask Extension. Confirm the transaction details on Keystone. Touch [Sign] and enter your password/fingerprint to verify. It will then show the signed transaction data in QR code format.

3) Click [Get Signature] on MetaMask Extension and scan the QR code shown on the Keystone device to broadcast the transaction.

2. Swap

The process of “Swap from Tokens to ETH / Tokens” is the same as the one of “Swap from ETH to Tokens”. The only difference is the methods of calling contracts.

V. Add Liquidity (e.g. ETH + UNI)

This part of the tutorial will explain how to add V2 liquidity on the Rinkeby testnet as an example. And the process of "add liquidity" on mainnet is the same as on testnet.

1. Approve

If it is the first time you are adding liquidity to a pair, you will be required to click [Approve] to authorize the third party (e.g. the smart contract of Token A) to spend Token A in your wallet before you can [Supply].

1) Switch to the “Pool” tab on Uniswap. Click [More] > [V2 Liquidity ] > [Add V2 Liquidity].

2) Select the coin type and set the amount you want to supply. Then click [Approve UNI].

(Tip: You can set fee tier and price range yourself If you are adding V3 liquidity).

3) Click [Confirm] on MetaMask Extension to get the unsigned transaction data in QR code format.

4) Keystone Hardware Wallet: Touch the “scan” icon and scan the QR code shown on MetaMask Extension.

5) Confirm the transaction details on the Keystone device. Touch [Sign] and enter a password or fingerprint to verify. This will then show the signed transaction data in QR code format.

6) Click [Get Signature] on MetaMask Extension and scan the QR code shown on Keystone device.

7) The transaction will be submitted automatically after the scanning has finished.

2. Supply

1) Once the approving transaction is confirmed, click [Supply].

2) Confirm the transaction details and click [Confirm Supply].

3) Click [Confirm] on MetaMask Extension to get the unsigned transaction data in QR code format.

4) Keystone Hardware Wallet: Touch the “Scan” icon and scan the QR code shown on MetaMask Extension.

5) Confirm the transaction details on the Keystone device. Touch [Sign] and enter your password or fingerprint to verify. The device will then show the signed transaction data in QR code format.

6) Click [Get Signature] on MetaMask Extension and scan the QR code shown on the Keystone device.

7) The transaction is submitted automatically after the scanning has finished.

VI. Remove Liquidity

This part of the tutorial will explain how to remove liquidity on the Rinkeby testnet as an example. And the process of "remove liquidity" on mainnet is the same as on testnet.

1. Approve

If it is the first time you are removing the liquidity of a given liquidity pair, you will be required to click [Approve] to authorize the third party (e.g. the smart contract of Token A) to spend Token A in your wallet before you can [Remove] liquidity.

1) Switch to the “Pool” tab on Uniswap. Click [Manage] -> [Remove].

2) Set the amount and click [Approve].

3) Click [SIGN] on MetaMask Extension to get the unsigned message in QR code format.

4) Keystone Hardware Wallet: Touch the “scan” icon and scan the QR code shown on MetaMask Extension.

5) Confirm the message on the Keystone device. Touch [Sign] and enter your password or fingerprint to verify. After signing, you will then receive the sign message in a QR code format.

6) Click [Get Signature] on MetaMask Extension and scan the QR code shown on your Keystone device.

7) Approval has been completed.

2. Remove

1) Once the approval is completed, click [Remove].

2) Confirm the transaction details and click [Confirm].

3) Click [Confirm] on MetaMask Extension to get the unsigned message in QR code format.

4) Keystone Hardware Wallet: Touch the “Scan” icon and scan the QR code shown on MetaMask Extension.

5) Confirm the transaction data on your Keystone device. Touch [Sign] and enter your password or fingerprint to verify. The device will then show the signed transaction data in QR code format.

6) Click [Get Signature] on MetaMask Extension and scan the QR code shown on your Keystone device.

7) The transaction is submitted automatically after the scanning has finished.

Instructions recommended:

Decoding DeFi Transactions
Firmware
How to upgrade firmware
Tutorial
https://app.uniswap.org/#/swap
https://app.uniswap.org/#/swap
Keystone-MetaMask-DeFi-1
Keystone-MetaMask-DeFi-2
Keystone-MetaMask-DeFi-3
Keystone-MetaMask-DeFi-4
Keystone-MetaMask-DeFi-5
Keystone-MetaMask-DeFi-6
Keystone-MetaMask-DeFi-7
Keystone-MetaMask-DeFi-8
Keystone-MetaMask-DeFi-9
Keystone-MetaMask-DeFi-10
Keystone-MetaMask-DeFi-12
Keystone-MetaMask-DeFi-13
Keystone-MetaMask-DeFi-14
Keystone-MetaMask-DeFi-15
Keystone-MetaMask-DeFi-16
Keystone-MetaMask-DeFi-17
Keystone-MetaMask-DeFi-18
Keystone-MetaMask-DeFi-19
Keystone-MetaMask-DeFi-20
Keystone-MetaMask-DeFi-21
Keystone-MetaMask-DeFi-22
Keystone-MetaMask-DeFi-23
Keystone-MetaMask-DeFi-24
Keystone-MetaMask-DeFi-25
Keystone-MetaMask-DeFi-26
Keystone-MetaMask-DeFi-27
Keystone-MetaMask-DeFi-28
Keystone-MetaMask-DeFi-29
Keystone-MetaMask-DeFi-30
Keystone-MetaMask-DeFi-31
Keystone-MetaMask-DeFi-33
Keystone-MetaMask-DeFi-34
Keystone-MetaMask-DeFi-35
Keystone-MetaMask-DeFi-36
Keystone-MetaMask-DeFi-37
Keystone-MetaMask-DeFi-38
Keystone-MetaMask-DeFi-39
Keystone-MetaMask-DeFi-40
Keystone-MetaMask-DeFi-41
Keystone-MetaMask-DeFi-42
Keystone-MetaMask-DeFi-43
Keystone-MetaMask-DeFi-44
Keystone-MetaMask-DeFi-45
Keystone-MetaMask-DeFi-11