Giter Club home page Giter Club logo

go-api's Introduction

Bitcoin/Litecoin Full-Node Library written in Go Language

Instructions to use the go-library. (Ubuntu)

Note: the go-library is currently being developed, when it's finished the instructions to use it will be simplified.

Install go-lang 1.8

sudo add-apt-repository ppa:gophers/archive
sudo apt update
sudo apt-get install golang-1.8-go

Clone bitprim-go

git clone https://github.com/bitprim/bitprim-go

Export GO variables:

export PATH=$PATH:$(/usr/lib/go-1.8/bin/go env GOROOT)/bin
export GOPATH=$(go env GOPATH)

Export library path: (bitprim-node-cint build folder)

export LD_LIBRARY_PATH=/home/bitprim/bitprim/build/bitprim-node-cint:$LD_LIBRARY_PATH

Execute go get to copy the project to ~/go

go get github.com/bitprim/bitprim-go/rest-api

In the file bitprim/executor_native.go set the c-api location:

#cgo linux CFLAGS: -I/home/bitprim/bitprim/bitprim-node-cint/include 
#cgo linux LDFLAGS: -L/home/bitprim/bitprim/build/bitprim-node-cint -lbitprim-node-cint

Run go install:

go install github.com/bitprim/bitprim-go/rest-api

Run the server:

~/go/bin/rest-api

go-api's People

Contributors

fpelliccioni avatar hanchon avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.