Client Libraries and SDK#
The Decentral-America GitHub organization publishes an open-source SDK and tooling ecosystem for building on DecentralChain. All official packages are written in TypeScript and released under the MIT license.
Package |
Description |
|---|---|
Build and sign (including multi-sign) all 16 transaction types |
|
Full Node REST API JavaScript client library |
|
HTTP client for the DecentralChain data service API — asset search, transaction history, DEX data |
|
Wallet connection and transaction signing orchestrator for web apps |
|
Cubensis Connect wallet provider implementation, used together with |
|
TypeScript type definitions for Cubensis Connect |
|
Cryptographic primitives — key generation, signing, hashing, base58/base64 encoding |
|
Shared TypeScript type definitions for the SDK |
|
Domain model classes: Asset, Money, OrderPrice |
|
Oracle data parsing and encoding utilities |
|
Protocol Buffer serialization for transactions |
|
Ledger hardware wallet JavaScript interface |
|
Binary serialization/deserialization for DecentralChain data structures |
|
Java client library |
Installing#
Install only the packages you need for the layer you’re working at. For example, to build, sign, and broadcast transactions from a Node.js backend:
npm install @decentralchain/transactions @decentralchain/node-api-js
To build a browser dApp that lets users sign with their own wallet instead of a raw seed, see Wallet Integration.
For usage examples, see How-To Guides.