Skip to content

casiphia/opensea-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opensea-go

Golang's library for OpenSea APIs (https://docs.opensea.io/reference).

Get Started

Get it

go get -u github.com/casiphia/opensea-go

Use it

package main

import (
	"context"
	"github.com/casiphia/opensea-go"
	"log"
)

func main() {
	var cli = opensea.New(opensea.WithTestNets(true))
	var asset, err = cli.Asset(context.Background(), &opensea.AssetRequest{
		AssetContractAddress: "0x66583bd73a27c9245b723ff6a58f872234c3a50a",
		TokenID:              "3",
	})
	if err != nil {
		log.Fatalln(err)
		return
	}
	log.Println(asset)
}

About

Golang's library for OpenSea APIs (https://docs.opensea.io/v2.0/reference).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published