basic

command
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 8 Imported by: 0

README

Basic example using the client

Configuration

Ship node

The code expects a nodeos with eosio::state_history_plugin enabled to be running on 127.0.0.1:8089

Edit the followin variable in main.go if your state history node is running elsewhere.

// IP and port to the ship node.
var shipHost string = "ws://127.0.0.1:8089"
API Node

It's also recommended that to set APIURL to a nodeos server with chain_api plugin enabled. like http://api.eossweden.org for example.

This can also be the same node that is running the state history plugin.

edit the variable in main.go

// Url to the antelope api on the same node as ship is running.
// Use this to fetch a sane value for `startBlock`
var APIURL string

Running the example

To run the example simply execute:

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL