What’s Expanse ?

The Expanse platform now has a two-year history of consistent growth and stability. Starting out small, but with big ideas, the team is growing and other projects are now coming on board to help make the dream a reality — limited only by the imagination and talent of all the diverse people around the world involved in the journey.

What’s the difference between Expanse and Ethereum?

Expanse has lower transactions fees and Expanse.tech has created a $1,000,000 development fund to provide financial grants to innovative projects built in and around Expanse. Awards range from $5,000 to $50,000, and there are no strings attached: you continue to own your IP, are free to publish however you wish, and can use the grant funds without any restrictions or obligations to Expanse except all projects must use the Expanse network in some way.

What is needed to setup an Expanse Smart Contract?

You need to have Gexp (go-expanse) installed and any web browser.

Download latest Gexp release

Building gexp requires Go and C compilers to be installed:

sudo apt-get install -y build-essential golang

Finally, build the gexp program using the following command.

And run it!

cd go-expanse-master

make gexp gexp --rpc --rpccorsdomain " https://remix.ethereum.org/ " console

This command allows remix connect to your node (We’ll talk about remix later).

Output should look like this:

Welcome to the Gexp JavaScript console! instance: Gexp/v1.7.2-stable/linux-amd64/go1.9.2

coinbase: <your_address>

at block: 1173495 (Tue, 22 May 2018 20:35:48 EEST)

datadir: /home/<your_user>/.expanse

modules: admin:1.0 debug:1.0 eth:1.0 exp:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0 >

Your coinbase must have some Exp. If you want to deploy contract on Testnet (recommended for testing), make sure you run test network and mine some Exp on it. You can connect to testnetwork with command:

gexp --testnet --fast --cache=512 console

If this is your first time starting Gexp or you haven’t started it in a while, it may take a while for the blockchain to sync. You can check syncing progress with eth.syncing. If syncing is complete, this will return false, otherwise you must wait until currentBlock matches highestBlock. Usually gexp will full sync in less them hour.

Write Your First Smart Contract

Here is our smart contract token example. It is a simple token(not a ERC20 token) with just a constructor,two functions and some field. Copy this code to a plain text file ans save it.