Difference between revisions of "How to access the blockchain"

From Atheios crypto WIKI
Jump to: navigation, search
(Fetching gath)
(Fetching gath)
Line 41: Line 41:
<code color=grey>
<code color=grey>
root@lamp-s-1vcpu-1gb-lon1-01:~/gath-linux-amd64-1.0.3# ./gath console
root@lamp-s-1vcpu-1gb-lon1-01:~/gath-linux-amd64-1.0.3# ./gath console
<code color=grey>
I0811 14:00:10.710414 cmd/utils/flags.go:613] WARNING: No etherbase set and no accounts found as default<br>
I0811 14:00:10.710645 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /root/.atheios/gath/chaindata<br>
I0811 14:00:10.730918 ethdb/database.go:176] closed db:/root/.atheios/gath/chaindata<br>
I0811 14:00:10.731465 node/node.go:176] instance: gath/v1.0.3-phi-45cf16e9/linux/go1.10.1<br>
I0811 14:00:10.731646 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /root/.atheios/gath/chaindata<br>
I0811 14:00:10.749109 eth/backend.go:187] Protocol Versions: [63 62], Network Id: 11235813<br>
I0811 14:00:10.749729 eth/backend.go:205] WARNING: Wrote default atheios genesis block<br>
I0811 14:00:10.749836 eth/backend.go:215] Chain config: {ChainID: 1620  Atheios Gath}<br>
I0811 14:00:10.750207 core/blockchain.go:221] Last header: #0 [b17a6645…] TD=8589934592<br>
I0811 14:00:10.750282 core/blockchain.go:222] Last block: #0 [b17a6645…] TD=8589934592<br>
I0811 14:00:10.750330 core/blockchain.go:223] Fast block: #0 [b17a6645…] TD=8589934592<br>
I0811 14:00:10.752205 p2p/server.go:340] Starting Server<br>
I0811 14:00:12.870525 p2p/discover/udp.go:227] Listening, <br>enode://8752964d6ce3facec87b5319cd10825e51dfe4d5a7d3218ae64f0c58df3cb1de5d939bb6890dca74977d7fbbdc5d067deab3e55e35f9bd5b606ebd25629bde6e@[::]:30696
I0811 14:00:12.887418 p2p/server.go:608] Listening on [::]:30696
I0811 14:00:12.887767 node/node.go:341] IPC endpoint opened: /root/.atheios/gath.ipc<br>
Welcome to the gath JavaScript console!<br>
instance: gath/v1.0.3-phi-45cf16e9/linux/go1.10.1
modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0
> I0811 14:00:32.887949 eth/downloader/downloader.go:326] Block synchronisation started
I0811 14:00:36.427827 core/blockchain.go:1103] imported  10 blocks,    0 txs (  0.000 Mg) in    3.161s ( 0.000 Mg/s). #10 [b8d667b3… / fa7e76ac…]
I0811 14:00:44.505661 core/blockchain.go:1103] imported 1025 blocks,  1292 txs ( 27.132 Mg) in    8.010s ( 3.387 Mg/s). #1035 [ad753fcb… / 031f3a9d…]
I0811 14:00:48.114219 core/blockchain.go:1103] imported 1023 blocks,  2173 txs ( 45.612 Mg) in    3.608s (12.640 Mg/s). #2058 [031f3a9d… / 084d00d1…]
I0811 14:00:56.191399 core/blockchain.go:1103] imported  784 blocks,  1643 txs ( 34.503 Mg) in    8.007s ( 4.309 Mg/s). #2842 [6245d2ec… / 6a47736c…]
=== Configuration ===
=== Configuration ===
=== Testing ===
=== Testing ===

Revision as of 14:44, 11 August 2018

This page is under contruction

How to access the blockchain

The problem statement

Blockchains are in general of distributed nature. In ordert to access them and to potentially send or receive ATH there are two choices:

  • Run a gath node (easiest if You are anyway running an own server)
  • Access via Metamask (when You want to to access ATH via a website and not run a node)

Solution 1: deploy a node


In order to spin off a node we will use a droplet from digital ocean http://www.digitalocean.com. When selecting a droplet, we will choose choose the following parameters:

  • 1 CPU
  • 1 GB RAM
  • 25 GB SSD space
  • floating IP

at the time of writing a droplet would cost 5 USD per month. We will use LAMP UBUNTU 16.04 for X64 as a base system. It is important to use this one, as otherwise You need to enable SSH access and fiddle with the firewall settings via digital ocean's console.


After installation digital ocean will send You the login information with the user root and then the password. You can facilitate the information by logging in via SSH

ssh root@Your_IP_ADDR

This will prompt for a password which You have received via mail. Once logged in You are placed into the /root directory.

Fetching gath

Atheios releases on Github

As we want to run a node, we need an executable to do so. gath is the go language implementation of the atheios node. The latest release can be found at the following address: https://github.com/atheioschain/go-atheios/releases At the point of writing the latest version is 1.03. When Atheios develops further new versions will be released. In the release branch several versions are available: for OSX, windows and Linux. As we run Ubuntu on AMD64 we will choose the related file and download it: https://github.com/atheioschain/go-atheios/releases/download/1.0.3/gath-linux-amd64-1.0.3.tar.gz Upload the file with Your FTP file of Your choice to the droplet and place into the /root folder. The file can be uncompressed with
tar xvf gath-linux-amd64-1.0.3.tar.gz
This will create a directory and place gath inside the directory. Gath is a multipurpose command line tool that run a full Atheios node. It offers multiple interfaces: the command line subcommands and options, a JSON-RPC server and an interactive console. Let us fire up the console

root@lamp-s-1vcpu-1gb-lon1-01:~/gath-linux-amd64-1.0.3# ./gath console