Chapter 6

Riding the Waves Blockchain

IN THIS CHAPTER

Bullet Getting acquainted with the Waves blockchain

Bullet Setting up and securing your Waves wallet

Bullet Figuring out what your wallet can do for you

Bullet Creating a cryptocurrency of your very own

In this chapter, I introduce you to the Waves blockchain, a relatively new blockchain with extraordinary capabilities. The Waves team has merged several technologies — such as multi-asset wallets, decentralized exchanges, and cryptocurrency creation tools — in an easy-to-use and friendly user interface.

The Waves blockchain is an exciting place for developers to build because it has smart contract functionality and uses a next-generation consensus algorithm, giving it some of the highest speeds for a public blockchain. But you don’t need to know how to code to get something out of Waves.

If you’re interested in creating your own digital assets or trading on decentralized exchanges, this chapter is an essential read. Here, you find out how to secure your web wallet, transfer Bitcoin, earn cryptocurrency through leasing out your assets, and create your very own cryptocurrency.

Tip After you’ve read this chapter, to learn even more about the Waves platform, go to https://docs.wavesplatform.com/en/overview/how-to-use-this-guide.html.

Seeing How the Waves Blockchain Differs from Other Blockchains

Waves is a public blockchain platform based on the Nxt proof-of-state (PoS) protocol. It’s fully decentralized, transparent, and auditable. Anyone can use the platform to launch, distribute, and trade colored coins, which are like the tokens issued on Ethereum via smart contracts. Colored coins are used to represent anything you might want to trade on a blockchain (for example, stocks, bonds, commodities, or real estate). With a few clicks and a simple download, you can start creating all kinds of new cool things.

Warning Just because you can easily create tokens and colored coins doesn’t mean that it’s legal to distribute them. Always check with your lawyer before creating something that may be used as a financial instrument.

Waves secures its network by leveraging the balances of existing accounts to “forge” blocks. Instead of having people use specialized equipment to “mine” new cryptocurrency, Waves rewards cryptocurrency holders for validating blocks. These so-called “forgers” are given transaction fees instead of a block reward. The PoS algorithm has been popularized because it’s efficient enough to be run on small devices like the Raspberry Pi. Plus, PoS doesn’t have the same scalability and security issues that PoW systems have.

Technical stuff Specifically, many PoW blockchains are vulnerable to a 51 percent attack where a majority of the mining power is being generated by a few individuals who can then corrupt the records written in the blockchain’s history. However, PoS systems have their own issues: A few parties could aggregate a majority of the value on the network and take it over. Weighing cost reduction, speed, and security are essential as you’re looking at different platforms to use for your business.

Waves also implements a decentralized peer-to-peer exchange, a voting system, a messaging/chat system, and a decentralized Domain Name System (DNS). Many blockchains have one or two of these features. Waves has all of them on a newer network model.

Unleashing the Full Power of Waves

The Waves wallet is more than just a place that you can keep your Waves cryptocurrency. It also supports several other cryptocurrencies, including Bitcoin and Ethereum. The Waves wallet also gives you access to a decentralized exchange (see “Using a decentralized exchange,” later in this chapter).

The Waves wallet also allows you to generate your colored coins without needing to do any coding. Colored coins function much like the ERC20 tokens covered in Chapter 5. They’re structured differently than ERC20, but they function the same. Colored coins can be set up for one-time use, like a digital coupon, or circulate like a currency.

The Waves wallet is very user-friendly and easy to learn. You’ll find it to be one of the simplest, yet most powerful, blockchain applications available to the average person.

Tip You can get a downloadable version of the Waves wallet, which holds your private keys on your device and is a more secure option. It also lets you work offline. Waves also has a fantastic web wallet, which is only available online. In this chapter, I show you how to use the web version because it’s the most straightforward and easy version of the wallet and because it has access to the decentralized exchange.

In this section, I walk you through how to set up and back up your Waves wallet. As a side note, Waves has a minimum limit of 0.001 Bitcoin to open a Bitcoin wallet. That’s about $10 at the time of this writing.

Setting up your Waves wallet

The Waves client is the wallet that allows you to hold your Waves cryptocurrency, trade cryptocurrency, and create new assets. Because of the unique PoS system that Wave uses to secure its network, you can also lease your Waves and be rewarded with transaction fees from the network — all within your Waves wallet.

Here’s how to set up a recovery system for your Waves wallet, called a SEED phrase:

  1. Go to the Wave client website at https://client.wavesplatform.com/create.
  2. Click Continue with Web.
  3. Click What You Need to Know about Your SEED.
  4. Click Protect Yourself.
  5. Click I Understand.
  6. Click Continue.

Backing up your wallet

In this section, you take important steps to protect your digital assets and ensure you always have access to them.

Warning Blockchain software works differently from other Internet sites that allow you to create an account. Most online accounts have recovery features that allow you to gain access if you lose your password. This isn’t the case with cryptocurrency. You have ultimate control of your account and the assets that you hold in your wallet — and if you lose access to your wallet, you lose everything in it, forever.

Start by grabbing a pen and a piece of paper. Then, to back up your wallet, follow these steps:

  1. Write down your account name.
  2. Write down your password.
  3. Type your password and account name into the appropriate fields.
  4. Click Continue.

Tip Protect your piece of paper from being damaged by laminating it, if you can. Don’t create a digital copy or take a photo of your password or seed phrase. Millions of dollars have been lost by crypto enthusiasts who have taken shortcuts when backing up their wallets, myself included.

After you’ve created your account, you’ll want to back it up with what a SEED phrase. Follow these steps to back up your account:

  1. Get a second piece of paper.
  2. Click I Understand.
  3. Write down on paper in order your 15 words that form your account SEED.
  4. Click Continue.
  5. Reorder your 15 words.
  6. Click Confirm.
  7. Check the boxes and click Confirm and Begin.

Congratulations! You’ve now set up and backed up your account on Waves. Make sure to keep your username, password, and backup phrase (the 15 words you wrote down) in a safe place.

Tip Your backup phrase is also known as your seed phrase. It can be used to restore your account if you’ve lost your password. Because no one can reset your account password for you, make sure never to lose your pieces of paper, and keep the 15-word phrase in a different place from your username and password.

Uncovering Your Wallet’s Features

Now that you’ve set up and secured your account, you’re ready to explore some of the fantastic features of the Waves wallet. The Waves wallet lets the persons outside of the United States buy cryptocurrency with a credit card. But everyone is allowed to hold multiple cryptocurrencies, trade assets on its decentralized exchange, transfer assets to other users, and create unique colored coins (which can be one-time use, like a digital coupon, or have a perpetual life, like a currency).

Tip In the following section, I show you how to transfer Bitcoin to your new Waves wallet. I recommend using at least $10 to start, because Waves has a minimum amount before it will initiate the wallet for you. Double-check the fine print before sending any Bitcoin — the limit may have changed by the time you’re reading this book.

I also show you how to use a decentralized exchange to trade your Bitcoin for Waves cryptocurrency.

Transferring crypto assets

If you don’t yet own any cryptocurrency, you’ll need to get some to continue exploring the Waves platform. In Chapter 3, you can get detailed instructions on how to obtain your first Bitcoin.

After you’ve obtained some Bitcoin or Ether, you can use it to purchase Waves cryptocurrency. And later, you’ll use your Waves to create your very own colored coin. Conveniently, you can trade your Bitcoin or Ether from within your Waves web wallet without having to use a cryptocurrency exchange.

Before proceeding through this section, note the following:

  • Purchasing and using cryptocurrency has many unknown regulatory and tax implications that are still being hotly debated. Buying and trading cryptocurrency may create a tax liability.
  • Web wallets are not a very secure way to hold your assets. Only hold what you need for these exercises in your account at any time. Ten dollars of Bitcoin or Ether will be sufficient.

If you haven’t yet set up your wallet on the Waves platform, do so now. Also, if you have haven’t yet purchased Bitcoin, review Chapter 3 and set up a Coinbase account. Then follow these steps:

  1. Open two browser windows.
  2. In one window, go to www.coinbase.com and log in to your Coinbase account.
  3. In the other window, go to https://client.wavesplatform.com and log in to your Waves account.
  4. Copy your Bitcoin address for your Waves account.
  5. In your Coinbase window, paste your Bitcoin address.
  6. Send $10 of Bitcoin to Waves.

Transferring the Bitcoin from your Coinbase account to your Waves account may take some time. Waves also has a minimum limit of .001 Bitcoin to open a Bitcoin wallet. That’s about $10 at the time of this writing.

Using a decentralized exchange

Decentralized exchanges, often called DEXs, do not require you to trust the exchange with your money or cryptocurrency. You hold your own assets within your wallet until you decide to sell them and a buyer decides to purchase them.

When you want to sell cryptocurrency using a DEX, first you have to write an order to the decentralized order book for that exchange. After you’ve written your order, another user can then add a digitally signed counterorder and buy your cryptocurrency. The completed transaction is written to the DEX’s blockchain, and the assets are transferred between you and the buyer.

In this section, I introduce you to the innovations that have occurred on the Waves DEX system. I also show you how to trade your own Bitcoin for Waves using the Wave’s DEX. Make sure to complete this section if you want to create your very own colored coin later in this chapter. You’ll need Waves tokens to do so.

Trading on the Waves decentralized exchange

The Waves DEX allows you to trade assets from the security of your wallet. Because the Waves wallet supports several different types of cryptocurrency, you can trade them all on the Waves DEX — not just the Waves cryptocurrency and Waves colored coins. Trading has many of its own challenges and must be done thoughtfully.

The Waves DEX has fixed one of the many issues that have kept DEX technology from being more widely used. It has created real-time trading by centralizing the order book matcher. The Waves DEX is a hybrid of both centralized and decentralized exchange technology. Its centralized matcher pairs incoming orders and executes your trades typically within milliseconds. This is an advantage over other DEXs that are fully integrated within a blockchain. Fully decentralized exchanges are dependent on the block speed of their blockchains and have much higher trading costs.

You signal your willingness to purchase or sell assets by creating, signing, and sending a limit order request to the Waves matcher. The orders on Waves are the same as on other exchanges. An order for a buy is a fixed number of a token at a price equal to or better than you’ve specified. When you create a new order, it’s submitted to the DEX. You order is checked for accuracy and your signature is validated by your wallet’s public key.

The orders on the Waves DEX are linked in pairs and checked by Waves nodes. Then the matcher creates an exchange transaction, signs them, and writes the trade history into the Waves blockchain. You don’t have to execute a full order. The Wave’s matcher can also match partial orders. The validating nodes don’t charge these partial orders a full order fee. Your assets are only transferred after the trade has been publishing in the Waves blockchain. If the matcher fails for some reason, your trade will not take place. All unfilled orders are canceled automatically after 30 days.

Exchanging Bitcoin for Waves

To trade Bitcoin from your Waves Bitcoin wallet for Waves cryptocurrency using the Waves DEX, follow these steps:

  1. Go to https://client.wavesplatform.com and log in to your account.
  2. Click the Exchange icon.
  3. Click Waves/BTC.
  4. Input the minimum Waves/BTC order.
  5. Click Buy Waves.
  6. Click the Wallet icon.
  7. Wait for your trade to execute.

It may take a bit before you receive your Waves. You’re waiting for your order to be matched with a seller at the price you put out. You’ll know that your trade executed because on the wallet page, you’ll notice that your Bitcoin balance has changed and your Waves balance has increased.

Congratulations! You just used a DEX to trade Bitcoin for Waves.

Remember Don’t leave much value in an online wallet. And keep in mind that there may be tax implications for your trades.

Creating and Leasing Out Your Own Cryptocurrency

On the Waves platform, the cryptocurrency is colored coins. Colored coins have many uses. Anything that can be quantified and represented digitally for trade could use a colored coin as the mechanism for transfer its ownership online.

Technical stuff Colored coins and tokens have much the same utility, and the terms are often used synonymously, but they’re technically structured very differently. I always refer to Waves as colored coins so as to not confuse them with tokens that are generated on other blockchains through smart contracts.

In this section, you create your own colored coin using the simple colored coin generator that is built inside your web wallet. With a few clicks, you’ll have created a unique asset that can live on independent of you for the life of the Waves platform. You don’t even need to know how to code, but you do need to own some cryptocurrency already.

You may be able to buy Waves cryptocurrency from within your web wallet. This functionality is not available in all countries. If you skipped earlier parts of this chapter, go back now to obtain your first Waves. You will need at least 1 to generate tokens. Once you have some Waves tokens, follow these steps:

  1. Click the dice icon.

    You’ll know you’re on the right page because it will say “Token Generation” at the top.

  2. In the Name of Your Asset Field, input a name for your new colored coin.
  3. Add a description.
  4. Enter the total number you would like generated.
  5. Leave the drop-down menu on Reissuable.

    This means that your colored coins will stay in circulation after creation and transfer to a new person.

  6. In the Decimals field, enter 8.

    This is the smallest amount that can be handled with your new colored coin. Most cryptocurrencies are eight decimals.

  7. Click Generate.
  8. Click Confirm.
  9. Click View Details.

Congratulations! You’ve created your very own colored coins. You can view them by returning to the asset page where your Bitcoin and Waves are listed, and clicking the plus icon on the lower-right side of the page. This will bring up an option to pin your new coin to your asset home page.

Now that you’ve created your colored coins, you can lease out a portion of your Waves cryptocurrency and participate in the community that secures and maintains the Waves network. The best part is that you can earn new Waves by staking them. Just follow these steps:

  1. Click Leasing.
  2. Click Start Lease.
  3. Click List of Nodes.
  4. Choose a leasing pool.

    There will be several. Select one with active users and that makes regular payouts.

  5. Click the name of the pool.
  6. Copy the leasing address at the top of the page.
  7. Paste the leasing address into the Recipient field.
  8. Enter the number of Waves you want to lease.

    If you want to lease all your Waves, click Max.

  9. Click Start Lease.
  10. Click Confirm.

When you want your Waves back, you can cancel the lease by clicking the Detail icon and clicking Cancel Leasing.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset