Overview
The Go-wallet-sdk is a versatile Go-based wallet solution that supports multiple blockchain networks with diverse cryptographic algorithms and essential functionalities. Developers can use it for offline private key generation, address creation, transaction assembly, and digital signing. This SDK currently supports major blockchain protocols, with plans to expand coverage to additional networks.
Supported Platforms
As a Go SDK, it seamlessly integrates with:
- Web applications
- Mobile apps
- Desktop software
Installation and Setup
Using Go GET
Install the latest version via:
go get github.com/okx/go-wallet-sdkThe SDK offers two package types:
- Common packages (cross-chain functionalities)
- Coin-specific modules (e.g., ETH, BTC)
👉 Explore wallet API integrations
Core Features
Cryptographic Modules
crypto: Implements security protocols including:
- BIP32/BIP39 standards
- ECDSA/ED25519 algorithms
- Hash functions (SHA256)
- Encoding/decoding utilities
Blockchain-Specific Packages
| Package | Key Functions | Supported Chains |
|---|---|---|
| aptos-sdk | Address generation, TX signing | Aptos |
| bitcoin-sdk | PSBT creation, multisig support | BTC, BSV, LTC, DOGE |
| cosmos-sdk | Staking operations, IBC transfers | ATOM, OSMO, SCRT |
| ethereum-sdk | Smart contract interactions | ETH, 40+ EVM chains |
| solana-sdk | Token minting, program calls | SOL |
Implementation Examples
Ethereum Transaction Flow
import "github.com/okx/go-wallet-sdk/coins/ethereum"
func main() {
// Initialize wallet
wallet := ethereum.NewWallet()
// Generate address
address := wallet.NewAddress(privateKey)
// Sign transaction
signedTx := wallet.SignTransaction(rawTx, privateKey)
}Supported Cryptocurrencies
| Blockchain Family | Example Coins | Derivation Path |
|---|---|---|
| Bitcoin | BTC, LTC, DOGE | m/44'/0'/0'/0 |
| Ethereum | ETH, ARB, MATIC | m/44'/60'/0'/0 |
| Cosmos | ATOM, OSMO | m/44'/118'/0'/0 |
| Solana | SOL | m/44'/501'/0'/0 |
👉 Get started with Web3 APIs today
FAQ
Q: Can I use this SDK for cold wallet solutions?
A: Yes, the SDK supports completely offline operation for key generation and transaction signing.
Q: How often are new blockchain integrations added?
A: The development team releases updates quarterly with new chain integrations.
Q: Is there KYC required to use this SDK?
A: No, this is a purely technical solution without any identity verification requirements.
Q: What security audits has the SDK undergone?
A: All cryptographic implementations undergo third-party audits before release.
Q: Can I contribute to the open-source project?
A: Yes, the GitHub repository welcomes community contributions.
Q: How does this compare to other wallet SDKs?
A: Our solution offers broader multi-chain support with standardized APIs across protocols.
Testing and Quality Assurance
Each module includes comprehensive test cases in its respective tests/ directory on GitHub. These demonstrate practical implementations of all SDK functions.
Best Practices
- Always store private keys securely using hardware security modules (HSM)
- Implement proper transaction fee estimation