Skip to content

Stacks Go SDK v0.1.0 - Initial Release

Compare
Choose a tag to compare
@CyrusVorwald CyrusVorwald released this 10 Sep 11:48
· 29 commits to main since this release
faa4fa7

We're excited to announce the initial release of the unofficial Stacks Blockchain SDK for Go. This SDK enables Go developers to interact with the Stacks blockchain, allowing for token transfers and smart contract calls.

Features

  • Transaction creation and signing for:
    • STX token transfers (Type-0 transactions)
    • Contract calls (Type-2 transactions)
  • Support for standard authorization and single-signature spending conditions
  • Clarity value encoding and decoding
  • Stacks address handling and conversion
  • Network support for both Mainnet and Testnet
  • Transaction broadcasting
  • Fee estimation
  • Nonce management

Key Components

  • pkg/clarity: Implements Clarity types and values
  • pkg/crypto: Provides cryptographic functions for signing and key management
  • pkg/stacks: Defines Stacks-specific types and network configurations
  • pkg/transaction: Handles transaction creation, serialization, and broadcasting

Usage Examples

The SDK includes examples for common operations:

  1. Creating and broadcasting STX token transfers
  2. Making contract calls
  3. Working with Clarity values

Integration Tests

The package includes integration tests that demonstrate real-world usage, including:

  • Broadcasting STX token transfer transactions
  • Broadcasting contract call transactions

These tests can serve as practical examples for developers integrating the SDK into their projects.

Getting Started

To use this SDK in your Go project, run:

go get github.com/icon-project/stacks-go-sdk

What's Changed

Full Changelog: https://github.com/icon-project/stacks-go-sdk/commits/v0.1.0