Supported Cosmos chains
mainThe Cosmos SDK supports a wide range of chains beyond the Atom mainnet, including:
- Atom
- Axelar
- Cronos
- Evmos
- Iris
- Juno
- Kava
- Kujira
- Okc
- Osmos
- Secret
- Sei
- Stargaze
- Terra
- Tia
repository·main·Indexed 20 days ago
https://github.com/okx/go-wallet-sdkA modular Go SDK for building multi-chain wallet applications. It provides tools for offline transaction signing, account management, and support for various blockchain standards (such as BRC20 on Bitcoin) across multiple public chains, including Aptos, Avalanche, Bitcoin, Cardano, Cosmos, Elrond, and EOS.
The Cosmos SDK supports a wide range of chains beyond the Atom mainnet, including:
xdr package provides functionality for encoding and decoding Stellar XDR (External Data Representation) types. Most of the code within this package is automatically generated from Stellar XDR definitions.The Tron SDK is an offline-only library. It does not communicate with the blockchain directly. To successfully sign transactions that can be broadcast, the caller MUST provide the following parameters sourced from a Tron node:
RefBlockBytesRefBlockHashExpirationTimestampFeeLimit (required for TRC-20 transfers)The SDK uses a modular architecture designed for extensibility. It is composed of three core components:
coins: Contains the implementation for transaction creation and signing for each supported blockchain.crypto: Handles general cryptographic operations and signature algorithms.util: Provides helper utilities for common operations.This modularity allows developers to easily integrate or extend the SDK with new blockchains by following the existing structure in the coins directory.
The crypto/go-ethereum directory contains a vendored snapshot of go-ethereum used for Ethereum primitives (common types, crypto, RLP, EIP-712 typed-data hashing, transaction types, etc.).
Most code in this directory is licensed under LGPL-3.0-or-later. However, specific subdirectories use different licenses and are NOT LGPL:
crypto/bn256/: See crypto/bn256/LICENSEcrypto/ecies/: See crypto/ecies/LICENSEcrypto/secp256k1/: See crypto/secp256k1/LICENSETo estimate gas charges without actually sending a transaction, set the simulate parameter to true in either Transfer or TransferJetton. When simulating, the seed can be passed as nil in the Transfer function.
// Example for TON simulation
simulate := true
signedTx, err := Transfer(nil, pubKey, to, amount, comment, seqno, expireAt, 3, simulate, wallet.V4R2)
// signedTx.Tx is used to estimate gas chargesTo use the Cardano SDK in your Go project, install the package using go get to obtain the latest version.
go get -u github.com/okx/go-wallet-sdk/coins/cardanoTo install the latest version of the Harmony SDK, use the go get command to add the package to your Go project.
go get -u github.com/okx/go-wallet-sdk/coins/harmonyTo use the Flow SDK in your Go project, install the latest version using go get.
go get -u github.com/okx/go-wallet-sdk/coins/flowTo install or update the btcec package, use the following Go command. This package provides secp256k1 elliptic curve cryptography designed for compatibility with Go's standard crypto/ecdsa packages.
$ go get -u github.com/okx/go-wallet-sdk/bitcoin/btcsuite/btcd/btcecTo install the latest version of the Zil SDK, use the go get command to add the package to your Go project.
go get -u github.com/okx/go-wallet-sdk/coins/zilTo ensure the directory contains the canonical license texts from upstream go-ethereum, run the following commands from the repository root. This requires network access to github.com.
# Requires network access to github.com; run manually.
curl -fsSL https://raw.githubusercontent.com/ethereum/go-ethereum/master/COPYING \
-o crypto/go-ethereum/COPYING
curl -fsSL https://raw.githubusercontent.com/ethereum/go-ethereum/master/COPYING.LESSER \
-o crypto/go-ethereum/COPYING.LESSER