Overview
This guide shows you how to sign TON transactions using Dynamic’s Node SDK. You build your transaction cell using@ton/ton, serialize it to a base64 string, and pass it to signTransaction(). The method returns a base64-encoded Ed25519 signature that you then attach to the cell before broadcasting.
Prerequisites
Step 1: Install Dependencies
Step 2: Build, Sign, and Send a Transaction
The approach for signing transactions depends on how you created your wallet:With Automatic Backup (Recommended)
If you created your wallet withbackUpToClientShareService: true, you can sign directly without retrieving key shares:
With Manual Backup
If you created your wallet withbackUpToClientShareService: false, you must retrieve and provide external key shares:
- If your wallet was created without a password, omit the
passwordparameter - If your wallet was created with a password, you must provide it for all operations
- The password parameter is always optional in the API, but required if the wallet is password-protected