Go SDK for the Maestro Dapp Platform
- Go 1.20
- golangci-lint for linting
- golines for formatting
go get -u github.com/maestro-org/go-sdk@mainimport "github.com/maestro-org/go-sdk/client"
maestroClient := client.NewClient("<PROJECT_API_KEY>", "<NETWORK>")- To generate an API key, create a free account here!
- Network options:
preview,preprod,mainnet,sanchonet
package main
import (
"fmt"
"github.com/maestro-org/go-sdk/client"
)
func main() {
maestroClient := client.NewClient("<PROJECT_API_KEY>", "mainnet")
blockInfo, err := maestroClient.BlockInfo(9005859)
if err != nil {
fmt.Printf("Failed to retrieve block info: %s\n", err)
}
fmt.Println(blockInfo.Data.AbsoluteSlot)
}Meastro welcomes all contributors! Please see our contributing guidelines and code of conduct.