• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Cryptin.eu

Information on cryptocurrency, blockchain and bitcoin.

  • Waves Node
  • Articles
  • Guides
  • Links
  • Contact
  • Glossary
  • Nederlands
  • Home
  • What is cryptocurrency?
  • What is blockchain?
  • Trading cryptocurrency
  • Glossary
  • Cryptocurrency FAQ
You are here: Home / Video / [VIDEO] How to create a smart contract on Waves Platform: Smart Assets

[VIDEO] How to create a smart contract on Waves Platform: Smart Assets

Want to know how to create a smart contract? In this video we’ll show you how you can perform the first part of creating a smart contract (on the Waves Platform): creating a smart asset. Thanks a lot Woutje from Bearwaves for supplying the code used in this example.

Script code

#A Smart Asset which checks for a data transaction to enable or disable token burning
#If EnableBurn is set to true burning of the token is allowed. Else it is not.
#Address defined for data transaction:
let AddressWithData = Address(base58'3P9joJaAYxoTR1oWr38bNrQSrnpqAZVzbm6')

let EnableBurn = extract(getBoolean(AddressWithData, "EnableBurn"))

if (EnableBurn) then

match (tx) {
    case _ => true
  }

else

match (tx) {
    case b:BurnTransaction => false
    case _ => true
  }

Data transaction code

#A data transaction lets you send data to an account
{
  "type": 12,
  "version": 1,
  "fee": 100000,
  "data": [
    {
      "type": "boolean",
      "key": "EnableBurn",
      "value": true
    }
  ]
}

Primary Sidebar

Cryptin Waves Node

Featured

The Ultimate Cryptocurrency Security Guide

Latest

  • [VIDEO] How to buy and stake USDN/Neutrino Dollar (on Waves.exchange) 23 March 2020
  • [VIDEO] What is the Neutrino stablecoin and how does it work? 12 January 2020
  • [VIDEO] How to create a smart contract on Waves Platform: Smart Account 6 May 2019
  • [VIDEO] How to create and use an alias on Waves Platform 19 March 2019
  • [VIDEO] How to create a smart contract on Waves Platform: Smart Assets 16 February 2019

Footer

Search within this site

 

 

Copyright © 2018 Cryptin.eu

Donations

Bitcoin
1JuJDFgddSvsSD4559BJLDtPuhnJnaB4xv

Litecoin
LbfS7BL3kd7VyQyHBJermg75Ms5yNdQp3i

Ethereum
0x7bfc5459e37f5165d385b0783f59b025f99e400d

Waves (and Waves Reward Token – WRT)
3P4ttNa4U4dxmuyaaV51gb7xMTCG8CtXXsR

Contact us

Contact us through our contactform or by emailing  info@cryptin.eu

  • Cryptin Waves node
  • Waves Node
  • Twitter
  • Facebook
  • Youtube

Copyright © 2025 · KIMI On Genesis Framework · WordPress · Log in