How to: Setup To Deploy Your First Workload On The Playground

Playground Interface Setup

The Threefold Playground allows you to deploy both Virtual Machines and Applets using only your browser with minimal local depencies.

In order to get started deploying on the Playground you will have to set a few things up

Install the Polkadot-Js Extension

Open Google Chrome and go to the Chrome Web Store by typing “chrome.google.com/webstore” in the address bar.

  • 1.) Search for “polkadot-js” in the search bar and select the extension from the results.
  • 2.) Click on the “Add to Chrome” button to install the extension.
  • 3.) A pop-up window will appear asking for permission to install the extension. Click “Add extension” to continue.
  • 4.) Once the installation is complete, you will see a notification in the top right corner of your browser that the extension has been added.
  • 5.) To access the extension, click on the puzzle icon in the top right corner of your browser and select “polkadot-js”
  • 6.) Once the extension is open, you will be prompted to connect to a polkadot-js enabled node. You can either connect to the default provided node or add your own custom node by clicking on the “Advanced settings” button.
  • 7.) Once you are connected, you will be able to interact with the Polkadot network using the extension’s built-in features such as viewing account balances and transaction history, and creating and signing transactions.
    • hold off on creating wallet for now untill youve read the next step.
      Note: Make sure you have the latest version of Google Chrome installed to use this extension.
Create Your Wallet

You have Three options for creating this wallet

Use an Existing Stellar Wallet Nmeonic

Open the Polkadot-js extension in Google Chrome by clicking on the puzzle icon in the top right corner of the browser and selecting “polkadot-js”.

  • 1.) In the extension, click on the “Accounts” tab and then select “Import Accounts”
  • 2.) Select “Stellar” from the list of supported chains.
  • 3.) Enter your Stellar mnemonic phrase in the field provided.
  • 4.) Click on the “Import” button to import your Stellar account into the Polkadot-js extension.
  • 5.) Once the import is complete, you will see your imported Stellar account listed under the “Accounts” tab.
  • 6.) To confirm that the import was successful, you can check the balance of your imported Stellar account by selecting it and then clicking on the “Account Details” button.
  • 7.)To use the imported account for interacting with the Polkadot network, make sure to set it as the active account by clicking on the “Use” button next to the account.

Note: Importing an existing Stellar account into the Polkadot-js extension will not affect the account’s balance or transaction history on the Stellar network. It will only allow you to use that account to interact with the Polkadot network.

Create A New Polkadot Wallet In The Exstension

Open the Polkadot-js extension in Google Chrome by clicking on the puzzle icon in the top right corner of the browser and selecting “polkadot-js”.

  • 1.) In the extension, click on the “Accounts” tab and then select “Add Account”
  • 2.) A new window will appear, select “Create a new seed”
  • 3.) Enter a name for your new wallet, this is for your reference only
  • 4.) Click on the “Generate” button to create a new seed phrase.
  • 5.) Carefully write down the seed phrase on a piece of paper and store it in a safe place, as it will be needed to restore access to your wallet if you ever lose your password.
  • 6.) Confirm your seed phrase by typing it in the field provided and clicking the “Confirm” button.
  • 7.) Once the seed phrase is confirmed, you will be prompted to create a password for the new wallet.
  • 8.) Enter a strong password and click “Save”

The new wallet will appear in the “Accounts” tab, and you will be able to use it to interact with the Polkadot network, this is a great option if you already have an exsisting stellar wallet.

Note: It is important to keep your seed phrase and password safe and secure, as anyone with access to them will be able to access and control your funds.

Create a New Stellar Wallet With Threefold Connect

You will want to follow this Tutorial to Setup your Threefold Connect Wallet Threefold Farming Guide Part 2

2.) Once you have Create Your Wallet you will want to follow the steps above under “Use An Exsisting Stellar wallet” using the Nmeonics you generate during the previous step.

Acquire TFT

In order to purchase TFT we will need to use an interface compatible with the stellar decentralized exchanges for this example we will use LOBSTR

Install LOBSTR

you will need to install the LOBSTR app on your mobile device

Install LOBSTR FOR IOS
  • 1.) Open the App Store on your iOS device.
  • 2.) Search for “Lobstr” in the search bar and select the app from the results.
  • 3.) Click on the “Get” button to start the installation process.
  • 4.) Once the installation is complete, you will see a notification that the app has been added to your device.
  • 5.) Go to the home screen of your device and open the Lobstr app.
Install LOBSTR for Android
  • 1.) Open the Google Play Store on your Android device.
  • 2.) Search for “Lobstr” in the search bar and select the app from the results.
  • 3.) Click on the “Install” button to start the installation process.
  • 4.) Once the installation is complete, you will see a notification that the app has been added to your device.
  • 5.) Go to the home screen of your device and open the Lobstr app.
Import wallet into LOBSTR
  • 1.) You will be prompted to either create a new wallet or restore an existing one, If you dont already have a stellar wallet you should create one with with Threefold Connect Using the steps under “Create a new wallet with Threefold Connect”
  • 2.) Add your exisisting or Threefold Connect Wallet by selecting “Restore Wallet” and entering your seed phrase and password.
  • 3.) Once you’ve created or restored your wallet, you will be able to view your account balance and transaction history, and create and sign transactions.
    Note: Make sure you have the latest version of Android or IOS installed on your device to use this app.
Fund your stellar wallet that you imported into LOBSTR

You will need to fund your wallet with xlm in order to trade it for TFT there are two primary ways of accomplishing this

Purchase XLM with with MoonPay
  • Open the Lobstr app on your iOS or Android device.
  • Tap on the “Buy” button in the bottom navigation bar
  • Select “XLM” from the list of available currencies
  • Select the amount you would like to purchase
  • Tap on “Next”
  • Select “Moonpay” as the Payment Method
  • Fill in your payment details, such as credit card information, and confirm the transaction
  • Wait for the transaction to be confirmed, it may take a few minutes for the funds to appear in your Lobstr wallet
  • Once the transaction is complete, you will see the XLM credited to your Lobstr wallet.

Note: It’s important to check the exchange rate and the fees associated with the purchase before completing the transaction. Also, you need to have an account with Moonpay to use this method to buy XLM.

Transfer XLM from an Exchange of your choice
  • Log in to your account on the centralized exchange where you purchased XLM
  • Locate the option to withdraw or transfer XLM from the exchange to an external wallet
  • Enter the public address of your Lobstr wallet as the destination address for the transfer.
  • Be sure to double-check the destination address to ensure it is correct, as sending XLM to the wrong address may result in loss of funds
  • Input the amount of XLM you wish to transfer and initiate the transaction
  • Wait for the transaction to be confirmed on the blockchain, it may take a few minutes to several hours depending on the blockchain’s congestion.
  • Once the transaction is confirmed, you will see the XLM credited to your Lobstr wallet.

Note: Make sure you have enough XLM in your exchange account to cover the network fee for the transfer, and also check for the exchange’s withdrawal limits and fees.

Swap XLM for TFT in the LOBSTR app Open the Lobstr app on your iOS or Android device.

-Tap on the “Swap” button in the bottom navigation bar.

-Select “XLM” as the currency you want to swap from.

-Select “TFT” as the currency you want to swap to.

-Input the amount of XLM you wish to swap.

-Tap on “Next”

-Review the details of the swap, such as the exchange rate, and the total amount of TFT you will receive.

-Tap on “Confirm” to initiate the swap.

-Wait for the transaction to be confirmed on the blockchain, it may take a few minutes to several hours depending on the blockchain’s congestion.

-Once the transaction is confirmed, you will see the TFT credited to your Lobstr wallet.

Note: Swap feature may not be available in all regions or jurisdictions, and also make sure to check the exchange rate and the fees associated with the swap before initiating the transaction.

Create Your Twin

you will visit the Threefold Dashboard Here you will

  • Agree to the Grids Terms and Conditions
  • Create your Digital Twin, this is your identity on the grid and represents you as deployer.
  • Once you have Accepted the Terms and Agreements and created your twin you can proceed to create your profile on the Playground
Create Your Profile on The Playground

Once you arrive on the Playground you will click the gear in the top right icon and create your deployment profile, this is how the interface knows what Twin is creating and managing the deployments being created and you will need a couple pieces of information.

  • Profile Name: this will be the name of your deployment profile, you can have multiple profiles representing different wallets, solutions, or access levels,
  • Mnemonics: These are the words from the wallet you created in the extension or the threefold connect app.
  • Public SSH Key: This where you put the text of your .pub ssh key file that coincides with the private key you wish to access your deployments with. This key will be added to the known hosts of each deployment and typically represents how you will initially gain access to your deployment.
Fund your Playground Deployment Account

In order to use the TFT in our wallet for a deployment we have to move it from the Stellar chain to the TFChain. How you will do this will depend on if your Stellar wallet was created in Threefold Connect or not

For Wallets Created In Threefold Connect

After Creating your profile, it will load the twin id you created in the Dashboard and generate a QR code that allows you to transfer your funds from the Threefold Connect App wallet onto your deployment profile. Simply open the Threefold Connect and click the QR scan button in the top corner.

For Wallets NOT Created in Threefold Connect

If you are using a third-party wallet the QR code may not be functional in your wallet, you can go to “swap” on the Dashboard and retrieve the Wallet address and memo for depositing to your twin from any stellar wallet address.

be sure you use the address and memo for twin deposits

Once you have completed these steps you will be ready to deploy your first workload on the Threefold Grid using The Playground.

1 Like