Files
m3o-go/examples/nft/assets/getAListOfAssets/main.go
2021-12-08 14:26:17 +00:00

19 lines
257 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/nft"
)
// Return a list of NFT assets
func main() {
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
rsp, err := nftService.Assets(&nft.AssetsRequest{
Limit: 1,
})
fmt.Println(rsp, err)
}