Skip to content

maestro-org/go-sdk

Folders and files

NameName
Last commit message
Last commit date
Sep 19, 2023
Apr 27, 2024
Sep 1, 2023
Apr 19, 2024
Sep 19, 2023
Apr 1, 2023
Sep 1, 2023
Oct 29, 2023
Sep 1, 2023
Oct 24, 2023
Sep 19, 2023
Oct 13, 2023
Sep 1, 2023
Sep 19, 2023
Apr 27, 2024

Repository files navigation

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.