Documentation Index
Fetch the complete documentation index at: https://docs.kynesys.xyz/llms.txt
Use this file to discover all available pages before exploring further.
TRON
TRON is a decentralized blockchain platform that focuses on high-throughput, scalability, and content distribution. The DEMOS TRON SDK lets you prepare and sign TRX transfer payloads from a Demos transaction. The SDK is built on top of TronWeb and exposes a small set of helpers covering the common operations.Setting up a wallet
Install the TronLink wallet extension or any wallet that exposes a TRON private key. You will need the raw private key (with or without a leading0x) to connect the SDK.
Creating the SDK instance
You need a TRON HTTP RPC endpoint. The TRON Foundation provides public mainnet and testnet endpoints; alternatively, TronGrid and GetBlock offer hosted endpoints.Connecting your wallet
0x; whitespace is trimmed automatically.
Getting your address
Getting your balance
Creating a transaction
preparePay produces a signed TRX transfer ready to broadcast. The amount is specified in SUN (the smallest TRX unit, where 1 TRX = 1,000,000 SUN):
preparePays:
Broadcasting a transaction
Signing messages
Hacking
The DEMOS TRON SDK is a thin wrapper around TronWeb. For advanced operations (smart contracts, TRC10/TRC20 tokens, resources, etc.) you can access the underlying TronWeb instance directly:| Property | Type | Description |
|---|---|---|
instance.provider | TronWeb | Provides read-only access to blockchain data |
instance.wallet | TronWeb | Initialized with a private key for signing |
Resources
- Official TRON Website
- Official TRON Developer Docs
- TronWeb GitHub
- Tronscan Block Explorer
- Shasta Testnet Faucet