v2 Contract SDK
  • Orbs Contract SDK
  • Getting Started
    • About smart contracts
    • Becoming a Go developer
    • Installing Gamma - local blockchain
    • Deploying your first contract
    • The Orbs Starter Kit
    • Downloading the Contract SDK
  • Orbs Contracts
    • Smart contracts
    • Layout of a contract file
    • Data types (Exported Functions)
    • State
    • Address
    • Events
    • Error handling
    • Calling other contracts
    • Calling Ethereum contract
    • API Reference
    • Limitations of Orbs Contracts
    • Creating a new contract
  • Gamma in Depth
    • Starting and stopping the server
    • Test keys and accounts
    • Deploying smart contracts
    • Sending transactions and queries
    • Checking sent transaction status
    • Reading Logs from Contracts
    • Working with multiple environments
    • Upgrading to latest versions
    • Gamma server under the hood
    • Deploying Gamma in the Cloud
      • Amazon Web Services
      • Google Cloud Platform
      • Azure
Powered by GitBook
On this page
  • Prerequisite
  • On MAC
  • On Linux
  • Installing Gamma Command Line Tool
  • On Mac
  • On Linux
  • Verify
  • Using Gamma CLI
  • Installing the Gamma server
  1. Getting Started

Installing Gamma - local blockchain

Gamma is a personal Orbs blockchain running locally that allows developers to easily test, run, and deploy smart contracts.

PreviousBecoming a Go developerNextDeploying your first contract

Last updated 5 years ago

Prerequisite

Gamma uses to run a personal blockchain with multiple nodes locally. Make sure Docker is available on your machine.

On MAC

See installation instructions .

On Linux

Install the community edition using the convenience script .

Installing Gamma Command Line Tool

Next, install the Gamma CLI. gamma-cli is the command line tool for developers to interact with a Gamma server instance running on their machine.

On Mac

Use

brew install orbs-network/devtools/gamma-cli

On Linux

Run the gamma-cli install script in terminal:

https://raw.githubusercontent.com/orbs-network/gamma-cli/master/gammacli-linux-install-v0.7.0.sh | bash

Verify

Verify the installation by running:

gamma-cli version

Using Gamma CLI

You can see the various commands supported by the CLI by running in terminal

gamma-cli help

You can use the CLI to start and stop Gamma server, deploy contracts and send transactions.

Installing the Gamma server

Gamma server is an in-memory virtual chain on top of an Orbs blockchain with several nodes on your local machine. The server allows you to test your contracts locally before deploying them to production.

If the server isn't installed yet, gamma-cli installs it automatically.

So far, we only installed the cli tool. Now, start the Gamma server by running the following command in the terminal. The CLI tool will notice the server is not installed and will install it for you:

gamma-cli start-local

When finished with the server, stop it by running in terminal

gamma-cli stop-local

If everything went well, you now have a running ORBS blockchain on your local machine. Yes, it's that simple! You can browse to to view the status of your local ORBS instance.

The start-local comands also runs our block explorer, Prism. You can use Prism to get more info about your blockchain instance by browsing to .

Docker
here
here
brew
http://localhost:8080/
http://localhost:3000/