Skip to content

The Trinsic Go SDK

The Trinsic Go SDK makes it easy to interact with the Trinsic API from any Go application. The most recent version of the library can be found on ____. You can find the SDKs source on Github.

Installation and Configuration

  • NOTE: Windows installation is possible, but requires jumping through a few hoops. More details to come later.
  • Make sure you have the okapi native binaries installed on your machine. Default installation instructions are in the readme.md here
  • You need to have CGO configured for the okapi native binary link
  • Issue the following command:
    go install github.com/trinsic-id/sdk/go@latest
    
  • To test the installation, try the following go code:
trinsicService, err := sdk.NewTrinsic()
if err != nil {
    panic("Account service not created")
}

profile, _, err := trinsicService.Account().SignIn(context.Background(), &account.SignInRequest{})
if err != nil {
    panic("Sign in failed!")
}
fmt.Printf("%v\n", profile)

Next Steps

Once the go package is installed and configured, you're ready to start building! We recommend going through the walkthrough next. If you're ready to dive into building your ecosystem, check out our API Reference

Start Walkthrough Explore API Go API Reference