Skip to main content

Overview

This guide walks you through creating TRON wallets using Dynamic’s Node SDK. You’ll learn how to set up different threshold signature schemes and understand the security implications for TRON blockchain operations.

Prerequisites

Before you begin, make sure you have:

Step 1: Choose Your Security Model

Dynamic supports three threshold signature schemes for TRON wallets:
  • Security: Highest, requiring both your server and Dynamic’s infrastructure
  • Availability: Lower, since both parties must be online
  • Use case: High-value transactions, maximum security

TWO_OF_THREE

  • Security: High, requiring 2 out of 3 shares
  • Availability: Medium, tolerating one party being offline
  • Use case: Balanced security and availability

THREE_OF_FIVE

  • Security: High, requiring 3 out of 5 shares
  • Availability: Highest, tolerating two parties being offline
  • Use case: Maximum fault tolerance and availability

Step 2: Create Your First TRON Wallet

Here’s a complete example of creating a TRON wallet:

Step 3: Handle Errors Gracefully

Always implement proper error handling for TRON wallet creation:

Step 4: Store Wallet Information Securely

After creating a TRON wallet, you’ll receive important information that should be stored securely:

Step 5: Derive the TRON Address

You can also derive the TRON address from the wallet’s public key using deriveAccountAddress(). This is a synchronous method:

Best Practices

  1. Password Security: Use strong, unique passwords for each TRON wallet
  2. Error Handling: Always handle potential errors during wallet creation with the onError callback
  3. Monitoring: Log wallet creation events for audit purposes
  4. Backup Strategy: Implement secure backup strategies for key shares with backUpToDynamic: true
  5. Persist walletMetadata: The SDK is stateless — store the returned walletMetadata alongside your key shares, since every signing, export, and refresh operation requires it

TRON-Specific Considerations

Address Format

TRON addresses are Base58Check strings starting with T. All TRON networks (Mainnet, Shasta, Nile) share the same address format, so one wallet works on every network — the network is chosen by the full node you build and broadcast transactions against.

Native Unit

TRON uses SUN as the smallest unit: 1 TRX = 1,000,000 SUN.

Next Steps

Now that you’ve created a TRON wallet, you can:
Last modified on October 15, 2026