QANplatform
qanplatform.comIntro to QANplatformTechnology FeaturesQANX TokenDev Docs
  • qanplatform.com
  • Welcome
  • Community
    • Social media
    • Newsletter
  • TECHNOLOGY
    • 🟢Intro to QANplatform
    • Technology Features
      • Hybrid blockchain
      • Multi-language Smart Contracts | Hyperpolyglot
      • Ethereum EVM Compatibility
      • Integrations
      • Proof-of-Randomness (PoR) consensus algorithm
      • Transaction per second (TPS)
      • Developer Royalty Fees
      • Mobile Phone Validation
      • Low-cost fixed transaction fees
      • Quantum-resistant Security
    • Use Cases
    • Blockchain 101
      • Blockchain Basics
      • Crypto Wallets
      • Coin and Token Types
      • Blockchain Transactions
  • QANX Token
    • What is QANX?
    • How to Buy QANX?
      • Buy QANX on PancakeSwap
      • Buy QANX on Uniswap
      • Buy QANX on Gate.io
      • Buy QANX on BitMart
      • Buy QANX on BingX
    • How to Store QANX
      • Store QANX in MetaMask
        • How to add QANX token to MetaMask
      • Store QANX in Trust Wallet
        • How to add QANX token to Trust Wallet
      • Store QANX in MEW
        • How to add QANX token to MEW
      • Other wallets
  • DEVELOPERS
    • QAN Private Blockchain
    • QAN TestNet
    • [QVM] Multi-language smart contracts
      • Generic workflow
        • Common API
        • Installing qvmctl
        • Setting up your workspace
        • Writing a smart contract
        • Compiling a smart contract
        • Deploying a smart contract
        • Calling a smart contract function
        • Reading smart contract storage
      • DOCs for supported languages
        • JavaScript (JS) smart contract
          • Writing a smart contract in JavaScript (JS)
          • Compiling a smart contract in JavaScript (JS)
        • Java smart contract
          • Writing a smart contract in Java
          • Compiling a smart contract in Java
        • Python smart contract
          • Writing a smart contract in Python
          • Compiling a smart contract in Python
        • TypeScript (TS) smart contract
          • Writing a smart contract in TypeScript (TS)
          • Compiling a smart contract in TypeScript (TS)
        • C# (C-Sharp) smart contract
          • Writing a smart contract in C# (C-Sharp)
          • Compiling a smart contract in C# (C-Sharp)
        • C++ smart contract
          • Writing a smart contract in C++
          • Compiling a smart contract in C++
        • C smart contract
          • Writing a smart contract in C
          • Compiling a smart contract in C
        • Golang (Go) smart contract
          • Writing a smart contract in Golang (Go)
          • Compiling a smart contract in Golang (Go)
        • Rust smart contract
          • Writing a smart contract in Rust
          • Compiling a smart contract in Rust
        • Kotlin smart contract
          • Writing a smart contract in Kotlin
          • Compiling a smart contract in Kotlin
      • [QVM] Versions & Changelog
        • V0.0.1
        • V0.0.2
    • Smart Contract Developers
    • Validators
    • Node Providers
  • ABOUT US
    • Company
    • Roadmap
    • Press kit & Media assets
    • Media mentions
    • Blog
  • Papers
    • White Paper
    • Pitch Deck
    • Onepager
    • Ebooks
      • Quantum-computing and Blockchain: The Definitive Guide
      • Blockchain's Energy Consumption: The Definitive Guide
      • Blockchain's Transaction Speed: The Definitive Guide
  • Audits
    • QANX Bridge Audit
    • QANX Token Audit
    • QAN TestNet Audit
  • Disclaimers
    • Disclaimer
      • Validation
      • Privacy Policy
      • Cookie Policy
Powered by GitBook
On this page
  • The new era of smart contracts by QANplatform has arrived.
  • Golang (Go), one of the fastest emerging programming language
  • Write smart contract in Golang (Go)
  • Benefits of Golang smart contracts
  • It’s time to write your first smart contract in Golang
  1. DEVELOPERS
  2. [QVM] Multi-language smart contracts
  3. DOCs for supported languages

Golang (Go) smart contract

Write smart contracts in Golang (Go) - powered by QANplatform

PreviousCompiling a smart contract in CNextWriting a smart contract in Golang (Go)

Last updated 4 months ago

The new era of smart contracts by QANplatform has arrived.

The QAN Virtual Machine (QVM) allows developers to write smart contracts in any programming language. This is a breakthrough for the whole blockchain ecosystem since most blockchain platforms are only compatible with the Ethereum smart contract language, Solidity.

Launching in 2023, QANplatform will be the first quantum-resistant Layer 1 hybrid blockchain platform where developers can write smart contracts in any programming language. Before the official private and public blockchain launch, QAN is publishing some puzzle pieces of its upcoming technology, such as the QVM, where developers can test the multi-language smart contract feature on the Ethereum Sepolia Testnet as a Layer 2 smart contract execution engine.

Golang (Go) is the first language to be officially supported by QVM. The reason is simple: The whole QANplatform infrastructure is written in Go, including QVM itself. It was only natural to make Go the first language to be supported as we know & love it really much!

Golang (Go), one of the fastest emerging programming language

Write smart contract in Golang (Go)

However there are some Go samples, libraries, SDKs, and APIs where developers can interact with a blockchain (e.g. query the blockchain, send transactions, interact with a node), there are only few blockchains where developers can code smart contracts in JavaScript. QANplatform allows developers to build: smart contract, DApp, DeFi, DAO, token, CBDC, NFT, Metaverse, and Web3 solutions in Golang.

Benefits of Golang smart contracts

Suppose you are a single developer looking to play around with blockchain. In that case, you can finally do that since you are not forced to learn a new programming language in your free time, like Solidity — which you could only use for specific purposes. Instead, you can use your current Golang knowledge that you may possibly already mastered for several years or even a decade.

It’s time to write your first smart contract in Golang

Three engineers from Google, namely , , and , laid the foundations for the Go programming language in 2007. Google and the Go developer team wanted to create a language that was easier to use but still had the beneficial characteristics found in other languages such as C++, Python, and JavaScript.

The open-source Go programming language is popular at companies such as Google, Dropbox, American Express, Microsoft, Twitter, Salesforce, etc., and among the developer community. As reported by , there are around 2.7 million developers worldwide who can code in Go as of 2022. According to , Go is among the fastest-growing languages (28.3% increase only in one year). According to StackOverflow, like last year, over 10,000 Javascript developers want to start or continue developing in Go. Therefore it isn’t a surprise that Go is among the top 10 most loved and in the top 5 most wanted programming languages based on the report of .

If you are a CEO, CTO, CINO, CBDO looking to innovate with blockchain technology you can benefit from QANplatform’s feature as well. No need to hire or train Solidity programmers, since you can already use your inhouse development team or your current IT partner. It makes talent acquisitions, development, and codebase maintenance easier and cost-efficient for enterprises.

Blockchain platforms only reward validators (miners, stakers) and node providers in their own utility tokens; however, smart contract developers are the ones who are building use cases and products on the blockchain to reach mass adoption. Imagine that GitHub would reward developers when their code is getting re-used by others. on the QAN MainNet; therefore, you can already prepare some code libraries while playing around with QAN Virtual Machine and Golang smart contracts.

Robert Griesemer
Rob Pike
Ken Thompson
JetBrains
GitHub
Stackoverflow
multi-language smart contract
QANplatform will reward developers