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


tron-blockchain Function to Return the USDT/USDD/USDC Contract Address on Tron Blockchain (Main Net, Nile, Shasta) blockchain Cryptocurrency Cryptocurrency javascript nodejs php python Smart Contract Tron Blockchain USDT

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 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

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
1223 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/USDC (TRC-20) Smart Contract Tokens on TRON Blockchain?

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

Leave a Reply