Getting the mosaic information
Get the ownership, divisibility, duration, and flags for a given mosaic identifier.
Prerequisites
- XPX-Chain-SDK or XPX-Chain-CLI.
- A text editor or IDE.
- Finish creating a mosaic guide.
Getting into some code
Call getMosaic
function, passing the mosaicId you want to check as a parameter.
mosaic, err := client.Mosaic.GetMosaicInfo(context.Background(), mosaicId)
if err != nil {
panic(err)
}
fmt.Printf("%s\n", mosaic.String())