Files
m3o-go/examples/nft/assets/getAListOfAssets/main.go
2021-12-09 15:06:12 +00:00

18 lines
252 B
Go
Executable File

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