Poltergeist Phantasma — Ethereum Swap Tutorial

Jay
Jay
Sep 30, 2020 · 6 min read

Welcome to the Phantasma cross chain asset swapping tutorials. These tutorials will guide you step by step through every detail necessary to ensure a successful cross chain asset swap using our wallets Poltergeist and Ecto.

Mind that if you do not have a Phantasma wallet or wallet address yet, we recommend starting out by downloading the wallet of your choice — Poltergeist for a standalone desktop wallet application that’s also available for Android, or our browser extension wallet Ecto which has that familiar Metamask feeling for Ethereum users. For a quick guide on wallet creation, backing up private keys and other basic things, check out the Poltergeist Basics tutorial or the Ecto Basics tutorial.

Before we start — warning: reduced speed ahead

If you receive a message saying your swap has failed when claiming tokens in your Ethereum wallet, this is usually because the transaction has been broadcast, but not mined on Ethereum yet. If this happens, give it some time (15–20 minutes) and then try again — remember that transactions on the Ethereum blockchain take longer than you will have become used to while using the Phantasma mainnet.

Ethereum takes its sweet time — have some hot cocoa and come back later

Getting your Poltergeist Ethereum wallet ready

There are three basic ways to do this:

  • Use your existing Phantasma wallet and send ETH to your freshly created Ethereum wallet in Poltergeist, or
  • Import your existing Ethereum wallet holding ETH into Poltergeist using your private key. This will give you corresponding Phantasma and NEO addresses using the same private key, or
  • Create a new wallet in Poltergeist and send ETH to the Ethereum wallet that is created

Once you have done this, you are ready to start swapping!

1 — Swapping from Ethereum to Phantasma

Important note: Swapping to and from Ethereum is contingent on the speed of the Ethereum blockchain — you may face delays if it is congested, and it will be far slower than you are used to on the Phantasma blockchain.

1.1 Switch to “Ethereum” view in the top left

1.2 Choose the asset you wish to swap

You can now see the Ethereum wallet balance. Click “Send” next to the token you wish to swap

1.3 Select destination address and confirm

Click the corresponding Phantasma mainnet wallet, marked [Pha] in the dropdown menu, and click “Confirm”

1.4 Select Ethereum gas fee

Choose your preferred ETH gas fee for the transfer in the dropdown menu and click “Confirm”

1.5 Input the amount you wish to swap

Input the amount you would like to swap and click “Confirm”

Review transaction details and click “Send”

Click “View” to monitor the transaction on the Ethereum block explorer, or “Ok” to close the window. You can find your transaction under history tab later if needed

1.6 Claim your pending swap

Switch to “Phantasma” view in the top left

You can now see the Phantasma mainnet wallet balance. Click “Claim” next to the pending token balance. If there is no claimable balance displayed yet, that means the Ethereum side transaction is taking longer to confirm. You can monitor this by going to your history tab and viewing the latest transactions

Click “Yes” to release your swapped tokens to your Phantasma mainnet wallet

1.7 Swap complete

Your tokens have now arrived in your Phantasma mainnet wallet

2 Swapping from Phantasma to Ethereum

2.1 Choose the asset you wish to swap

After ensuring you have some ETH in your wallet for the gas fee, click “Send” next to SOUL or KCAL

2.2 Select the destination address

Click the corresponding Ethereum wallet, marked [Eth] in the dropdown menu, and click “Confirm”

2.3 Input the amount you wish to swap

Input the amount you wish to swap or choose “Max” from the dropdown menu to swap the full balance, then click “Confirm”

Review transaction details, then click “Send” (note that the ETH gas fee is not displayed)

Click “View” to view the transaction on the Phantasma block explorer, or “Ok” to close the window. You can find your transaction under history tab later if needed

2.4 Claim your pending swap

Switch to “Ethereum” view in the top left

You can now see the Ethereum wallet balance. Click “Claim” next to your SOUL/KCAL balance.

Click “Yes” to release your SOUL/KCAL to your Ethereum wallet

2.5 Swap complete

Your SOUL/KCAL has now arrived in your Phantasma mainnet wallet. Mind that this is dependant on the transaction being confirmed on the Ethereum blockchain and may take some time.

Note: If you receive a message saying your swap has failed when claiming tokens in your Ethereum wallet, this is usually because the transaction has been broadcast, but not mined on Ethereum yet. If this happens, give it some time (15–20 minutes) and then try again — remember that transactions on the Ethereum blockchain take longer than you will have become used to while using the Phantasma mainnet

Ethereum takes its sweet time — have some hot cocoa and come back later

With time additional assets will be swappable between Ethereum and Phantasma, such as various ERC20 tokens that can be used on Phantasma, Ethereum based and Phantasma based NFTs and other assets.

Uniswap links

Happy swapping,

The Phantasma Team

PhantasticPhantasma

Blockchain for Next Generation Content Distribution