Releases: icon-project/stacks-go-sdk
v0.5.0
What's Changed
- feat: implement post conditions & support smart contract clarity version by @bestmike007 in #36
New Contributors
- @bestmike007 made their first contribution in #36
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- feat(websocket): add websocket, update api version by @CyrusVorwald in #35
Full Changelog: v0.3.2...v0.4.0
v0.3.2
What's Changed
- chore: change PostConditionMode to Allow by @CyrusVorwald in #34
Full Changelog: v0.3.1...v0.3.2
v0.3.1
What's Changed
- feat(stacks): add custom network configuration by @CyrusVorwald in #33
Full Changelog: v0.3.0...v0.3.1
v0.3.0
This release adds ABI and Type-1 transaction support.
What's Changed
- feat(abi): implement Clarity ABI unmarshalling by @CyrusVorwald in #30
- feat(transaction): implement Type-1 transaction by @CyrusVorwald in #32
Full Changelog: v0.2.0...v0.3.0
v0.2.0
This release adds support for the RPC Client API and Stacks Blockchain API.
What's Changed
- feat(rpc_client): implement rpc client by @CyrusVorwald in #23
- Feat/stacks blockchain api client by @CyrusVorwald in #25
- feat(c32): derive stacks address by @CyrusVorwald in #28
Full Changelog: v0.1.0...v0.2.0
Stacks Go SDK v0.1.0 - Initial Release
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 valuespkg/crypto
: Provides cryptographic functions for signing and key managementpkg/stacks
: Defines Stacks-specific types and network configurationspkg/transaction
: Handles transaction creation, serialization, and broadcasting
Usage Examples
The SDK includes examples for common operations:
- Creating and broadcasting STX token transfers
- Making contract calls
- 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
- feat(stacks): add constants and network functionality by @CyrusVorwald in #10
- feat(c32): implement C32 encoding and address handling by @CyrusVorwald in #11
- feat(clarity): implement Clarity types and serialization by @CyrusVorwald in #12
- feat(transaction): implement contract call creation and broadcasting by @CyrusVorwald in #17
- Feature/transaction creation and broadcasting by @CyrusVorwald in #20
- ci: add GitHub Actions workflow by @CyrusVorwald in #18
- chore: update org from balancednetwork to icon foundation by @CyrusVorwald in #21
Full Changelog: https://github.com/icon-project/stacks-go-sdk/commits/v0.1.0