5. Mint Assets
Register users
Upload Media
package main
import (
"fmt"
"github.com/Zecrey-Labs/zecrey-marketplace-go-sdk/sdk"
)
func main() {
filePath := "/Users/alice/Documents/20221112-142909.jpg"
result, err := sdk.UploadMedia(filePath)
if err != nil { panic(err) }
data, _ := json.Marshal(result)
fmt.Println(string(data))
}{
"public_id":"collection/tsgqu4cgj57wrxncllky", //unique Id of the picture
"url":"https://res.cloudinary.com/zecrey/image/upload/v1668506730/collection/tsgqu4cgj57wrxncllky.jpg" //link of the picture
}Create a Collection
Mint NFT
Last updated
Was this helpful?