USDT and USDD are two stable coins on Tron Blockchain. They are both TRC-20 tokens or coins. There are Shasta and Nile Test Net on which the TRC-20 contract addresses for USDT and USDD are different than those on main nets (TronGrid, Tron Stack).
The following are simple functions to return the corresponding contract addresses for USDT or USDD or USDC on the specified network respectively.
USDT is the official stablecoin issued by Tether on the TRON network.
Node/Javascript Function to get USDT Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 10 11 | function get_USDT_Address(network) { network = network.toLowerCase(); if (network == "shasta") { return "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"; } else if (network == "nile") { return "TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf"; } else if (network == "mainnet") { return "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; } return null; } |
function get_USDT_Address(network) { network = network.toLowerCase(); if (network == "shasta") { return "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"; } else if (network == "nile") { return "TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf"; } else if (network == "mainnet") { return "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; } return null; }
PHP Function to get USDT Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 10 11 | function get_USDT_Address($network) { $network = strtolower($network); if ($network == "shasta") { return "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"; } else if ($network == "nile") { return "TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf"; } else if ($network == "mainnet") { return "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; } return null; } |
function get_USDT_Address($network) { $network = strtolower($network); if ($network == "shasta") { return "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"; } else if ($network == "nile") { return "TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf"; } else if ($network == "mainnet") { return "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; } return null; }
Python Function to get USDT Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 | def get_USDT_Address(network): network = network.lower() if network == "shasta": return "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" elif network == "nile": return "TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf" elif network == "mainnet": return "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" return None |
def get_USDT_Address(network): network = network.lower() if network == "shasta": return "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" elif network == "nile": return "TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf" elif network == "mainnet": return "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" return None
USDD is a fully decentralized over-collateralization stablecoin.
Node/Javascript Function to get USDD Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 10 11 | function get_USDD_Address(network) { network = network.toLowerCase(); if (network == "shasta") { return "TVMZYcbjpjaGqmciUjzuRWzANTXfHxrRCs"; } else if (network == "nile") { return "TFT7sNiNDGZcqL7z7dwXUPpxrx1Ewk8iGL"; } else if (network == "mainnet") { return "TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn"; } return null; } |
function get_USDD_Address(network) { network = network.toLowerCase(); if (network == "shasta") { return "TVMZYcbjpjaGqmciUjzuRWzANTXfHxrRCs"; } else if (network == "nile") { return "TFT7sNiNDGZcqL7z7dwXUPpxrx1Ewk8iGL"; } else if (network == "mainnet") { return "TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn"; } return null; }
PHP Function to get USDD Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 10 11 | function get_USDD_Address($network) { $network = strtolower($network); if ($network == "shasta") { return "TVMZYcbjpjaGqmciUjzuRWzANTXfHxrRCs"; } else if ($network == "nile") { return "TFT7sNiNDGZcqL7z7dwXUPpxrx1Ewk8iGL"; } else if ($network == "mainnet") { return "TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn"; } return null; } |
function get_USDD_Address($network) { $network = strtolower($network); if ($network == "shasta") { return "TVMZYcbjpjaGqmciUjzuRWzANTXfHxrRCs"; } else if ($network == "nile") { return "TFT7sNiNDGZcqL7z7dwXUPpxrx1Ewk8iGL"; } else if ($network == "mainnet") { return "TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn"; } return null; }
Python Function to get USDD Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 | def get_USDD_Address(network): network = network.lower() if network == "shasta": return "TVMZYcbjpjaGqmciUjzuRWzANTXfHxrRCs" elif network == "nile": return "TFT7sNiNDGZcqL7z7dwXUPpxrx1Ewk8iGL" elif network == "mainnet": return "TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn" return None |
def get_USDD_Address(network): network = network.lower() if network == "shasta": return "TVMZYcbjpjaGqmciUjzuRWzANTXfHxrRCs" elif network == "nile": return "TFT7sNiNDGZcqL7z7dwXUPpxrx1Ewk8iGL" elif network == "mainnet": return "TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn" return None
USDC is a fully collateralized US Dollar stablecoin developed by CENTRE, the open source project with Circle being the first of several forthcoming issuers.
Node/Javascript Function to get USDC Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 10 11 | function get_USDC_Address(network) { network = network.toLowerCase(); if (network == "shasta") { return "TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"; } else if (network == "nile") { return "TEMVynQpntMqkPxP6wXTW2K7e4sM3cRmWz"; } else if (network == "mainnet") { return "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8"; } return null; } |
function get_USDC_Address(network) { network = network.toLowerCase(); if (network == "shasta") { return "TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"; } else if (network == "nile") { return "TEMVynQpntMqkPxP6wXTW2K7e4sM3cRmWz"; } else if (network == "mainnet") { return "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8"; } return null; }
PHP Function to get USDC Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 10 11 | function get_USDC_Address($network) { $network = strtolower($network); if ($network == "shasta") { return "TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"; } else if ($network == "nile") { return "TEMVynQpntMqkPxP6wXTW2K7e4sM3cRmWz"; } else if ($network == "mainnet") { return "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8"; } return null; } |
function get_USDC_Address($network) { $network = strtolower($network); if ($network == "shasta") { return "TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"; } else if ($network == "nile") { return "TEMVynQpntMqkPxP6wXTW2K7e4sM3cRmWz"; } else if ($network == "mainnet") { return "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8"; } return null; }
Python Function to get USDC Smart Contract Address on Tron (TRC-20 Token)
1 2 3 4 5 6 7 8 9 | def get_USDC_Address(network): network = network.lower() if network == "shasta": return "TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id" elif network == "nile": return "TEMVynQpntMqkPxP6wXTW2K7e4sM3cRmWz" elif network == "mainnet": return "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8" return None |
def get_USDC_Address(network): network = network.lower() if network == "shasta": return "TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id" elif network == "nile": return "TEMVynQpntMqkPxP6wXTW2K7e4sM3cRmWz" elif network == "mainnet": return "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8" return None
You can send TRC-20 coins (USDD or USDT or USDC) via: How to Send/Transfer USDT/USDD/USDC on Tron Blockchain using Tronweb?
Tron Blockchain
- TRON Blockchain: How to Send the USDT (TRC-20) Transacton using Python tronpy?
- How to Get Balance of TRX or USDT/USDD/USDC (TRC-20) Smart Contract Tokens on TRON Blockchain?
- Function to Return the USDT/USDD/USDC Contract Address on Tron Blockchain (Main Net, Nile, Shasta)
- How to Send/Transfer USDT/USDD/USDC on Tron Blockchain using Tronweb?
- Javascript Function to Send Trx on Tron Blockchain based on TronWeb
- How to Generate an Account on Tron Blockchain using Python SDK?
- How to Claim the Witness (Super Representative) Voting Rewards on Tron Blockchain using Node Js (Javascript)?
- Automate Freeze Balance on Tron Blockchain using NodeJs with TronWeb/TronGrid
- Python Tool of Base58 Decode Check
- TRON Blockchain: How to Check the Number of Peers the Tron Node is Connected to?
- TRON Blockchain: How to Check If a Node is synchronized and Fully Functional?
- How to Activate a TRON (TRX) Blockchain Wallet Address?
- Delayed Swap due to Numeric Underflow Bug by using Tron’s triggerSmartContract Method
–EOF (The Ultimate Computing & Technology Blog) —
loading...
Last Post: Teaching Kids Programming - Minmax Dynamic Programming Algorithm (Game of Picking Numbers at Two Ends)
Next Post: How to Get Balance of TRX or USDT/USDD/USDC (TRC-20) Smart Contract Tokens on TRON Blockchain?