Skip to content

iaping/go-alchemy-nft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

go-alchemy-nft

golang sdk for https://docs.alchemy.com/reference/nft-api-endpoints

Installation

go get:

go get github.com/iaping/go-alchemy-nft/v2

Examples

examples

Simple

package main

import (
	"fmt"

	nft "github.com/iaping/go-alchemy-nft/v2"
)

func main() {
	client := nft.New("https://eth-mainnet.g.alchemy.com", "xxxxxxxxxxx", nil)
	resp, err := client.NewGetNFTs().Do(&nft.GetNFTsParam{
		Owner:        "0xe525FAE3fC6fBB23Af05E54Ff413613A6573CFf2",
		WithMetadata: true,
	})
	if err != nil {
		panic(err)
	}
	fmt.Println(resp)
}

Help

Let me know if you have any problems.