Function to Return the USDT/USDD Contract Address on Tron Blockchain (Main Net, Nile, Shasta)

tron-blockchain

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 on the specified network.

Node/Javascript Function to get USDT Address on Tron (TRC-20)

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 Address on Tron (TRC-20)

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 Address on Tron (TRC-20)

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

Node/Javascript Function to get USDD Address on Tron (TRC-20)

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 Address on Tron (TRC-20)

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 Address on Tron (TRC-20)

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

You can send TRC-20 coins (USDD or USDT) via: How to Send/Transfer USDT on Tron Blockchain using Tronweb?

Tron Blockchain

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading…

827 words
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 (TRC-20) Smart Contract Tokens on TRON Blockchain?

The Permanent URL is: Function to Return the USDT/USDD Contract Address on Tron Blockchain (Main Net, Nile, Shasta) (AMP Version)

.

Leave a Comment