Amahub Docs | TypeScript SDK Core Concepts
Build with Core Concepts in Amahub Docs. Follow SDK concepts, transaction flow, signing, errors and testnet checks for reliable Amadeus app integrations.
This section focuses on core concepts within the Amahub and Amadeus documentation stack, with practical context for JavaScript and TypeScript developers building on Amadeus.
What you'll learn
- Core API surface — use this as a checkpoint while working through 3. Core Concepts.
- Implementation flow — use this as a checkpoint while working through 3. Core Concepts.
- Error handling — use this as a checkpoint while working through 3. Core Concepts.
- Related SDK modules — use this as a checkpoint while working through 3. Core Concepts.
Implementation flow
- Initialize the SDK against the intended network.
- Read chain or wallet state before constructing a transaction.
- Build, sign and submit transactions, then verify the resulting receipt or state change.
Operational and developer context
SDK integrations should separate reads, transaction construction, signing and submission. That makes retries safer, improves debugging and lets the application validate state before asking a user or backend signer to authorize a transaction.
Network mismatches, stale state, incorrect amount units and unsafe key handling are common integration errors. Validate inputs and handle node errors explicitly.
Checks and troubleshooting
- Base URL is correct.
- Base-unit and display-unit conversions are explicit.
- Read, build, sign and submit stages are logged separately.
- Node errors are surfaced instead of replaced with generic failures.
Related Amahub Docs
- TypeScript SDK Introduction
- TypeScript SDK Getting Started
- Build & Sign Transactions
- Contracts & NFTs with the SDK
FAQ
What does TypeScript SDK Core Concepts cover?
It covers the official TypeScript/JavaScript SDK, transactions, keys, chain queries and contract interactions with implementation and operational context for JavaScript and TypeScript developers building on Amadeus.
Should I use testnet before using Core Concepts in production?
Yes for new integrations and operational changes. Validate network configuration, signing behavior, error handling and expected state changes in a non-production environment first.
What is the most important troubleshooting check?
Confirm network configuration, amount units, signer state and the node error returned by the failed request.