Giter VIP home page Giter VIP logo

blocksdk-go's Introduction

GO REST API SDK for BlockSDK

GitHub go.mod Go version Go Report Card

BlockSDK GO에 오신 것을 환영합니다. 이 저장소에는 BlockSDK의 GO SDK와 REST API용 샘플이 포함되어 있습니다.

지원중인 블록체인 네트워크

비트코인 , 라이트코인 , 비트코인 캐시 , 웹후크 는 V2버전 에서 지원되고 있습니다.

1.이더리움
2.클레이튼  
3.바이낸스 스마트 체인
4.폴리곤
5.아발란체
6.이더리움 클래식

개발자 문서

시작하기

go-get 을 사용하여 Install

go get -u github.com/Block-Chen/blocksdk-go

코드 샘플

이더리움 테스트넷 클라이언트 생성

package main

import (
	"fmt"
	blocksdk "github.com/Block-Chen/blocksdk-go"
)

func main() {
    ethClient := blocksdk.NewEthereum("YOU_TOKEN", "https://testnet-api.blocksdk.com/")
}

이더리움 메인넷 클라이언트 생성

package main

import (
	"fmt"
	blocksdk "github.com/Block-Chen/blocksdk-go"
)

func main() {
    ethClient := blocksdk.NewEthereum("YOU_TOKEN", "https://mainnet-api.blocksdk.com/")
}

이더리움 블록체인 정보 가져오기

result, err := ethClient.GetBlockChainInfo()

if err != nil {
    return
}

fmt.Println(result)

이더리움 테스트넷 특정 컨트렉트 NFT 목록 가져오기

request := map[string]interface{}{
    "contract_address" : "0xf5de760f2e916647fd766b4ad9e85ff943ce3a2b",
    "includeMetadata" : "false",
    "offset" : "0",
    "limit" : "10",
}

result, err := ethClient.GetSingleNfts(request)

if err != nil {
    return
}

fmt.Println(result)

blocksdk-go's People

Contributors

blockchen-admin avatar lee-il-woo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bianconery

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.