Skip to main content

Amahub Docs | TypeScript SDK Introduction

Build with Introduction in Amahub Docs. Follow SDK concepts, transaction flow, signing, errors and testnet checks for reliable Amadeus app integrations.

The official SDK is the starting point for TypeScript and JavaScript apps that query Amadeus nodes, manage keys and build signed transactions.

Primary intentTypeScript SDK Introduction
Best forJavascript and typescript developers building on amadeus

What you'll learn

  • SDK responsibilities — use this as a checkpoint while working through 1. Introduction.
  • Node client — use this as a checkpoint while working through 1. Introduction.
  • Transactions and signing — use this as a checkpoint while working through 1. Introduction.
  • Keys and recovery phrases — use this as a checkpoint while working through 1. Introduction.

SDK reference

@amadeus-protocol/sdk is the official TypeScript/JavaScript SDK for node queries, transaction building and signing, key handling and protocol data encoding. Use the Wallet SDK instead when a dApp should ask a user's wallet to sign rather than holding keys itself.

Implementation flow

  1. Initialize the SDK against the intended network.
  2. Read chain or wallet state before constructing a transaction.
  3. 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.
Decision rule: if a workflow changes balances, signs transactions, deploys code or changes node configuration, validate it in a non-production environment first and record the exact network used.

FAQ

What does TypeScript SDK Introduction 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 Introduction 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.