Skip to content

sidan-lab/go-sdk

 
 

Maestro Logo

Go SDK for the Maestro Dapp Platform

Getting Started

Prerequisites

Installation

go get -u github.com/maestro-org/go-sdk@main

Usage

import "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

Example

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)
}

Documentation

Contributing

Meastro welcomes all contributors! Please see our contributing guidelines and code of conduct.

About

Go SDK for the Maestro Dapp Platform

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.7%
  • Makefile 0.3%