Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Current »

This article describes how to use a TronGrid account to send USD₮ over TRON using CAS.

The CAS Crypto Hot Wallet option is currently shown as “Tron TRC20 Trident wallet - USDT”.

When using the TronGrid API with CAS, you’re granting CAS access to your TronGrid account to transmit your tokens (in this case: USD₮) over the TRON network.

In this article, we’re going to:

  1. create a TronLink Hot Wallet for TRON,

  2. add the wallet details to TronGrid,

  3. add those details to CAS, and

  4. test that CAS can submit USDT transactions to TRON.


Tether (USD₮)

Tether is the cryptocurrency token “USD₮”. Tether can be exchanged using a number of different networks. Supported networks include Algorand, Avalanche, Bitcoin, Ethereum, EOS, Kava, Polka, Polygon, Solana, TRON and Tezos. TRON is just one of those networks. Using CAS, USD₮ may be sent via either TRON or ETH (the ETH method of USD₮ transmission is called ERC-20).


TRON

TRON is a cryptocurrency Proof-of-Stake blockchain (similar to Ethereum). TRON uses its own version of USD₮ transmission called TRC-20. This Crypto Setting (TRC-20) is incompatible with ERC-20, and the two are in no way interchangeable - in the same way that BTC and LTC are incompatible.

  • The native coin to the TRON blockchain is TRX.

    • TRX is spent/burned (or staked) as a fee for token transmission (called energy and bandwidth).

  • Not all wallets or exchanges support TRON/TRX and TRC-20 tokens.

  • USD₮ cannot be sent using TRON to those wallets/exchanges that do not support TRON/TRX.

  • The Crypto Setting described in this article ONLY supports USD₮ using the TRC-20 protocol on TRON.

https://developers.tron.network/docs/faq


TronGrid.io

TronGrid is a communications platform that enables you to submit USD₮ (and other) transactions to the TRON network with little more than a TronGrid API key and your TRON private key.

  • The free account is sufficient for most Operators in CAS.


Part 1: TronLink wallet

You’ll need a TRON Private Key. You may use any TRON wallet to generate that Private Key, but TronGrid recommends TronLink. These instructions in this part will help you install the TronLink Chrome wallet.

  • TronLink is not required, but we’re demonstrating this wallet since it is preferred by TronGrid.

  • As of publication, TronGrid has no way of manually linking another wallet. That doesn’t mean you need TronLink for sending USD₮ over TRON, it just means that you cannot link any other wallet to TronGrid.

  • Once setup, TronLink is not used in your day-to-day operations (for CAS).

    • TronLink is required to obtain a TRON Wallet keyset. Once you have those, and TronGrid has been linked to that wallet, the extension itself is no longer a critical component.

TronLink: https://chromewebstore.google.com/detail/tronlink/ibnejdfjmmkpcnlpebklmnkoeoihofec

image-20240530-195712.png

Install the TronLink wallet Chrome extension.

  1. Install the extension,

  2. enable the requested default permissions,

  3. restart Chrome,

  4. open the TronLink extension, and

  5. create a new wallet:

image-20240530-200421.png

Create secure credentials.

  1. Name the Wallet something relevant,

  2. create a memorable yet complicated (secure) password, then

  3. click “Create Wallet”.

image-20240523-175721.png

Backup your wallet.

Upon Success, you should backup your wallet mnemonics to prevent catastrophe.

  • While not absolutely required, backing up now will make the remaining steps smoother. The app will hound you until you backup, and that’s not a bad policy.

image-20240523-175752.png

Export your TRON Account.

  • Click on the TRX dot sandwich to bring up a menu, and

  • click on “Export Account” to bring up the “Private Key” option.

  • If you didn’t backup yet, you’ll be reminded (again) now.

image-20240531-151616.png

Export the Account Private Key.

  • You’ll be required to enter your password.

image-20240531-152150.png

Save the Private Key.

  • Save the private key somewhere safe, such as in a password manager app (e.g. KeePass).

  • This key will be required as the Crypto Setting parameter privatekey.

image-20240531-153703.png

Part 2: TronGrid

TronGrid provides CAS with a method of posting TRON transactions on the TRON network using your TRON private key (generated by TronLink).

1. Create an account on TronGrid.io

Confirmation usually occurs within a day or two, rarely longer than a week.

  • A free account will suffice for initial setup and testing.

  • After you’re confirmed, log in and move on to step 2.

2. Login.

You should be presented with an opportunity to link TronGrid with the recently created TronLink wallet. You can do so, or skip it. You may use TronLink as your wallet’s manual interface - and using the TronGrid recommended wallet may be useful - but it is not required to move forward in the article.

image-20240521-205257.png

3. View your API Keys.

Using either link, navigate to: https://www.trongrid.io/dashboard/keys

image-20240531-163619.png

4. Create a new API Key.

image-20240531-164330.png
  • Name the key something relevant, e.g. “CAS USD₮ BUY Crypto Setting”.

  • Click “Create” to: create the key.

5. View the API Key.

Click “Check” on the relevant line to view the newly created API Key.

image-20240531-164828.png

6. Save the API Key.

The API Key will be viewable on this page.

image-20240531-170306.png
  • Example API key: 64bee9b8-0873-6940-b1ce-762092ef5efe

  • Save the API Key for future reference. You can review it at any time.

  • The API Key found here is the apikey parameter required by CAS for the Crypto Setting.


Part 3: Configure the Crypto Setting.

Assemble the required parameters.

The Crypto Setting parameters are: apikey:privatekey:feeLimit

  • The apikey parameter from the previous example in Part 2 is: 64bee9b8-0873-6940-b1ce-762092ef5efe

  • The privatekey parameter from Part 1 is (example): 63abcdef1234567890abcdef987654321fedcba

  • The feeLimit is optional and defaults to 30 (TRX). Tokens (like USD₮) will typically “burn” a rather fixed amount of TRX for every transmission. In my recent testing, it cost ~28 TRX per transaction.

So in this example, using the above info, our complete (required) "Parameters" looks like this:

64bee9b8-0873-6940-b1ce-762092ef5efe:63abcdef1234567890abcdef987654321fedcba

Select the “Tron TRC20 Trident wallet - USDT” Hot Wallet:

image-20240531-171529.png

Insert the proper Parameters where specified.

  • Do not include the optional parameter (feeLimit) until the BUY test has passed.

  • You should copy & paste the complete parameter string in a single operation!

    • You can’t append/add the parameters separately - each paste overwrites the previous contents completely.

Save the Crypto Setting!


Part 4: Test it (you’re done):

image-20240531-172255.png

Test your settings before deploying them.

  1. Save your setting,

  2. return to the same Crypto Setting,

  3. run the test(s).

See: https://generalbytes.atlassian.net/l/cp/9Zdit1KP

If the "Test Hot Wallet Buy" is successful, you've configured the TronGrid settings properly!


Additional references:

https://developers.tron.network/reference/full-node-api-overview

https://trongrid.zendesk.com/hc/en-us/articles/900007033343-Get-started

https://www.tronlink.org/

  • No labels