Giter Site home page Giter Site logo

cryptodev222 / gosdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0chain/gosdk

1.0 0.0 0.0 20.79 MB

A client SDK in Go to interface the blockchain and storage platform, and other smart contracts

License: MIT License

Go 98.50% Makefile 1.47% Shell 0.03%

gosdk's Introduction

0chain/gosdk

The 0chain client SDK is written in GO. This repository currently supports the following platforms:

  • OSX Mojave 10.14.5
  • LINUX (Ubuntu/bionic).
    • This includes all Ubuntu 18+ platforms, so Ubuntu 19, Linux Mint 19 etc. (apt based package installer)
  • LINUX (RHEL/CENTOS 7+)
    • All Releases based on RHEL 7+, Centos 7+, Fedora 30 etc. (yum based package installer)

It is possible to support the sdk for other variations of Linux as well.

Usage

  • Save below code as sdkversion.go

      package main
    
      import (
          "fmt"
    
          "github.com/0chain/gosdk/zcncore"
      )
    
      func main() {
          fmt.Println("gosdk version: ", zcncore.GetVersion())
      }
    
  • Run below command: (if you don't have gosdk already in your GOPATH)

      go get github.com/0chain/gosdk
    
  • Build the sample application sdkversion

      go build -o sdkversion sdkversion.go
    
  • Run the executable

      ./sdkversion
    
  • If it prints the gosdk version installed then setup is complete.

Mobile Builds (iOS and Android)

  • gosdk can be build to use on Mobile platforms iOS and Android using gomobile.

  • Xcode Command Line Tools is required to build SDK for iOS.

  • Android studio with NDK is required to build SDK for Android

  • Run below command for the first time to setup gomobile environment

      make setup-gomobile
    
  • Use below commands in the root folder of the repo to build Mobile SDK

      For iOS and Android:
              make build-mobilesdk IOS=1 ANDROID=1
      For iOS only:
              make build-mobilesdk IOS=1
      For Android only:
              make build-mobilesdk ANDROID=1
    

FAQ

gosdk's People

Contributors

andrenerd avatar andriykutsevol avatar avanaur avatar bbist avatar blockcodemagic avatar hauleit avatar iamrz1 avatar integralteam avatar jay-at-0chain avatar kenwes13 avatar krishnadeqode avatar m-s-a-c avatar mallochine avatar moldis avatar murashovven avatar noskillguy avatar peterlimg avatar sachin-0chain avatar sarath-ambati avatar satchinjoshi avatar sculptex avatar snaik avatar sriep avatar stewartie4 avatar vudn95 avatar

Stargazers

 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.