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

19 lines
253 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)
}