Go Swan SDK
This guide details the steps needed to install or update the SWAN SDK for Go. The SDK is a comprehensive toolkit designed to facilitate seamless interactions with the SwanChain API.
Getting started
Go Version
go-swan-sdk requires Go version 1.21 or above.
Swan API Key
To use swan-sdk, an Swan API key is required. Steps to get an API Key:
Go to Swan Console, switch network to Swan Chain Mainnet.
Login with your wallet.
Click
API Keys->Generate API Key
Using go-swan-sdk
With Go's module support, go [build|run|test] automatically fetches the necessary dependencies when you add importin your project:
import "github.com/swanchain/go-swan-sdk"To update the SDK use go get -u to retrieve the latest version of the SDK:
go get -u github.com/swanchain/go-swan-sdkQuickstart
To use go-swan-sdk, you must first import it, and you can create and deploy instance applications quickly.
Last updated