Easy Smart Contract Creation on Althash – Kava Token

in blockchain •  6 years ago 

Thought I’d start out with something fun like Kava Coin, unfortunately the name was already taken. So instead it’ll be “Kava Token” on the Althash blockchain.

So, for anyone wondering what Althash is, it’s HTMLCOIN’s blockchain, they’ve made it really easy to create smart contracts and all one has to do is have some HTML coins in their wallet to create their smart contract.

I’ve included the YouTube video that I followed in the links below. So, let’s get started with a step by step method of how to create your smart contract on the Althash blockchain.

In this tutorial/guide we’ll be using the Windows wallet.

Step One: Download HTML Wallet

Download the HTML coin wallet from the HTML Coin site:

Go to https://www.htmlcoin.com/wallets

The blockchain will have to load, so this may take some time. If your anti-virus software blocks the download, make an exception to the site and also the app and then start over.

Step Two: Retrieve Code for HTML Smart Contracts

Now you’re going to need the code for smart contracts from GitHub.

Go to https://github.com/HTMLCOIN/HTMLToken

  • Click on the HTMLToken.sol

  • Copy the Code

Note: Do not use Ctrl+A, the code has to be highlighted and copied starting at Line 1.

Step 3: Compile Code

The code will need to be compiled using remix an online IDE for Ethereum smart contracts

http://remix.ethereum.org

  1. Click to create a new file
  2. Add Token Name
  3. Click Ok

Once the file name is created, paste the “HTMLToken.sol” code to the browser. There are ONLY three modifications needed to be made to the code.

  1. Change Token Name – Kava Token (You can choose your own Token name)
  2. Change Token Symbol – KVT
  3. Change Token Quantity – 1,000,000,000
  4. Click on “Start to Compile” button

Step Four: Creating Your Smart Contract

  1. Open HTML wallet
  2. Go to Settings
  3. Options
  4. Click Enable Log Events

Note: Your Wallet will need to be restarted once you click OK, so close and reopen again. A message will pop up prompting “reindex the blockchain”, click OK. Be patience since the re-indexing process may take a while.

Just make sure that your internet is stable during this period or you will have to start over.

  1. Go to smart contract menu
  2. Click Create

  • Go back to remix and click on the details

You will be directed to the HTML Token page of the compiled code.

  • Copy the bytecode and paste to the HTML wallet field as shown below. Remember to only copy the codes between the objects key.

Get the contract ABI, this is done by going to copying the ABI contract and pasting it to the Interface (ABI) field in your wallet.

  • Do not change the “Gas Limit” and “Gas Price” fields, these are automated.
  • Chose the “Sender Address”, this is the address that will receive the total supply of the created contract. Which in this case is 1 billion Kava Tokens.

Note: Ignore “Optional”, the Sender Address is needed.

  • Click on the Create Contract button (some HTML coins will be used to create this contract)

  • Click “Yes” on the pop up

Once the contract is created, go to the Transactions tab and wait for the transaction to be mined.

Once the transaction is mined, the question mark on the “Contract Send” Type will be checked.

Wait until the contract is checked before moving forward, even if you’re prompted that the transaction was mined.

Go to the HRC Token tab

  • Click on add token
  • Input/Paste the contract address; once this is done note that the wallet recognized all other information and populate them in the remaining fields.
  • Chose the Address that was used to create the contract and then click Confirm

There are now 1,000,000,000 KVT Tokens that can be imbedded on a website or other projects willing to accept it.
The value of Kava token will be dictated by the market.

Conclusion:

I hope you realize how easy it is to create a smart contract on the Althash blockchain. Now you can go and share your coins/tokens with anyone you want or imbed it to your website site and projects you’re working on.

If anyone is interested in creating their first Althash smart contract and need HTML Coins, please include your HTML address in the comment section and I’ll send you 10 HTML Coins to help you get started.

Contract Summary:
TX Id: 46d8c428f716566c79379b255d684b4958b713e117bc1cb7b46dfc443c80266f
Creator Address: Hjc3cAWEjp5fxoZsbDgXqh8CtM195W4wFU
Hash160: 96cabe99cfbe3a8b88670c1f6a0a0e676978fcbb
Kava Token contract Address - 2749d6397fa8cbbd0e9316b7d2360461774cb8b9
Other Links:
HTML Coin blockexplorer – https://explorer.htmlcoin.com/blocks
HTML Coin Site - https://www.htmlcoin.com/
HTML Video on how to Smart Contracts -

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @jamaicamecrazy99! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of posts published

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @jamaicamecrazy99! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!