Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Staking Router SDKs

Generated client SDKs for the Alluvial Staking Router API.

This repository is generated. Do not edit by hand — changes are overwritten on the next release. The sources live in AlluvialFinance/staking-router.

Path Contents
go/rest/ Go REST client, generated with oapi-codegen
go/grpc/ Go gRPC client, generated with buf
openapi/ OpenAPI 3.0 specification for the public API

Each Go module lives in its own subdirectory and is versioned independently via a subdirectory tag.

Go — REST client

go get github.com/GalaxyDigitalPublic/staking-router-sdks/go/rest
import stakingclient "github.com/GalaxyDigitalPublic/staking-router-sdks/go/rest"

client, err := stakingclient.NewClientWithResponses("https://api.alluvial.finance")

Resolved via go/rest/vX.Y.Z tags.

Go — gRPC client

go get github.com/GalaxyDigitalPublic/staking-router-sdks/go/grpc
import stakingrouter "github.com/GalaxyDigitalPublic/staking-router-sdks/go/grpc"

client, err := stakingrouter.New(
	"api.staking.alluvial.finance:443",
	stakingrouter.WithToken("<ACCESS_TOKEN>"),
)
if err != nil {
	return err
}
defer client.Close()

Resolved via go/grpc/vX.Y.Z tags.

Both SDKs track the Staking Router version they were generated from.

Current version: main-34c18a1

About

Generated client SDKs for the Staking Router API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages