Skip to content

Latest commit

 

History

History
162 lines (123 loc) · 7.8 KB

token_transfer.md

File metadata and controls

162 lines (123 loc) · 7.8 KB

Join our telegram Join our discord Visit our website

Deploy your VPS using our referral link to get 20€ bonus

Deploy your VPS using our referral link to get 100$ free bonus for 60 days

Deploy your VPS using our referral link to get 100$ free bonus

How to transfer tokens between Ethereum and Substrate wallets

Creating an Agung Wallet

  1. Download and install Browser Extension
  2. Navigate to Peaq Explorer and press Add account button

  1. Save mnemonic and create wallet

  1. This will generate wallet address that you will have to use later. Example of wallet address: 5HVZ1wAh3wTejYXUyhhzXvDRStas1fnC3DhnFmcwBaewdDRt

Create an Ethereum wallet on Agung (peaq Testnet)

  1. Download and install Metamask Browser Extension
  2. After adding the MetaMask plugin, connectivity needs to established with Agung network by adding:
  • Network Name: PEAQ
  • RPC endpoint: ​https://erpc.agung.peaq.network/
  • Chain ID: 9999
  • Currency Symbol: AGNG

  1. Once connected with Agung network, the details of the wallet address are seen.

Fund your polkadot wallet

To top up your wallet join peaq discord server and navigate to:

  • #agung-faucet for AGNG tokens

To request a faucet grant:

!send <YOUR_WALLET_ADDRESS>

Deposit tokens from a Substrate Wallet to an ETH wallet on Agung (peaq Testnet)

Generate your deposit address

  1. Copy your ETH address (Public Key)
  2. Use this website to calculate your deposit address for Substrate.
  3. Change the address scheme to "H160".
  4. Leave the "Change address prefix" at "5".
  5. Enter your ETH address (Public Key) into the "Input address" field.

  1. Copy the lower address which represents your deposit address.

Transfer Tokens

  1. Go to polkadot.js
  2. Select the account you want to transfer funds from and click "send":

  1. Enter your generated deposit address in the "send to address" field:

  1. Enter the amount you want to transfer.
  2. Click the "Make transfer" button.
  3. Click the "Sign and Submit" button.
  4. Check the balance on your Ethereum (Metamask) Wallet.

You have successfully transferred Tokens from your Substarte Wallet to your Ethereum Wallet.

Withdraw tokens from an ETH Wallet to a Substrate wallet on Agung (peaq Testnet)

Generate your deposit address

  1. Copy your Substrate address (Public Key)

  1. Use this website to calculate your withdrawal address for Substrate.
  • Paste your (1) Substrate address under the AccountId to Hex text input.
  • Copy the first 42 characters from the converted result, or 40 characters with exception of the "0x"

  1. Send AGNG from your ETH wallet to this recent copied ETH address

  1. Approve and sign the transaction. Pay the calculated gas for this transaction. Your transaction is on its way. After a few seconds you should have it completed.
  2. Go to the Polkadot js Extrinsicts page
  3. Complete the form to call an Extrinsics, like the following example:
  • Using the selected account: Who is paying fees for the transaction? in this case could be your own Substrate address (if you have balance)
  • submit the following extrinsic: select evm (withdrawal(adress, value)
  • address: H160: the ETH address which we recently send AGNG (0x6803066634c5964f3dfd33a7a5c746d717471258)
  • value (BalanceOF): how many AGNG will I retrieve from the Extrinsic. In this case .3 AGNG = 3 + 17 zeros or 1 AGNG = 1000000000000000000 (+ 18 zeros)

  1. Sing the transaction. Wait a few seconds for a confirmation. Your AGNG should arrive to your account.

You have successfully transferred Tokens from your ETH Wallet to your Substrate Wallet.