Smart contract guide

Smart contract guide

Overview

A smart contract is a contract whose terms are expressed as a computer program with logic and state persisted on the blockchain. Smart contracts can automatically carry out its terms and conditions with total transparency and no counter-party risk.

Smart contracts allow users to extend the capabilities of the Terra blockchain by introducing custom logic that can be composed against the Terra blockchain’s financial primitives. These decentralized applications unlock new avenues of value-transfer through enabling unique transaction flows not provided by Terra’s native modules.

Developer tools

The following table maps commonly-used Ethereum developer tools to their Terra counterparts.

Terra

Ethereum

Frontend SDK

Terra.js, Terra SDK

Web3.js, Web3py

Browser Extension

Station CX

MetaMask, MEW

Local Testnet

LocalTerra

Ganache

Contract Language

Rust

Solidity, Vyper