Go SDK
Go client for the Ax402 control plane and buyer helpers. Module path: github.com/AxLabs/ax402-sdk/go.
Control plane
import ax402 "github.com/AxLabs/ax402-sdk/go"
client := ax402.NewClient(baseURL, ax402.Credentials{APIKey: os.Getenv("AX402_API_KEY")})
apis, err := client.ListAPIs(ctx)Buyer
import "github.com/AxLabs/ax402-sdk/go/buyer"
c, err := buyer.NewFromPrivateKey(ctx, privateKeyHex)
resp, err := c.Get(ctx, "https://myapi.localhost:8090/v1/data")Tests
cd ax402-sdk/packages/golang && go test ./...