TRC20
TRC20 base on tron blockchain writing the string into the memo field of the transaction to achieve this.
Install / Use
/learn @TRC20org/TRC20README
TRC20 Protocol
TRC20 Protocol base on TRON blockchain writing the string into the memo field of the transaction to achieve this.
Official Twitter:@TRC_20_TRXI
Token Economic
- Token: TRXI
- Supply: 2100000000
- limit: 1000
Method
- deploy:
data:,{"p":"trc-20","op":"deploy","tick":"trxi","max":"2100000000","lim":"1000"} - mint:
data:,{"p":"trc-20","op":"mint","tick":"trxi","amt":"1000"} - transfer:
data:,{"p":"trc-20","op":"transfer","tick":"trxi","detail":[{"to":"TRON Address","amt":"1000"}]}
Deploy txid
https://tronscan.org/#/transaction/3200ca62dde62e4a79d6f6bbaf3bab3ff81a2a67164f709bc172835003ba1599
Mint TRXI with nodejs
- Install Node.js
- Create a directory,such as
TRC20Mint - Open
TRC20Mint, execute command:npm init - Execute command:
npm install tronweb - Create an index.js file,copy the code below
- Run index.js:
node index.js
const TronWeb = require('tronweb');
const HttpProvider = TronWeb.providers.HttpProvider;
const fullNode = new HttpProvider("https://api.trongrid.io");
const solidityNode = new HttpProvider("https://api.trongrid.io");
const eventServer = new HttpProvider("https://api.trongrid.io");
const privateKey = "your privateKey"; //
const tronWeb = new TronWeb(fullNode, solidityNode, eventServer, privateKey);
const blackHole = "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb"; //black hole address
const memo = 'data:,{"p":"trc-20","op":"mint","tick":"trxi","amt":"1000"}';
async function main() {
const unSignedTxn = await tronWeb.transactionBuilder.sendTrx(blackHole, 1); //0.000001 TRX is the minimum transfer amount.
const unSignedTxnWithNote = await tronWeb.transactionBuilder.addUpdateData(unSignedTxn, memo, 'utf8');
const signedTxn = await tronWeb.trx.sign(unSignedTxnWithNote);
console.log("signed =>", signedTxn);
const ret = await tronWeb.trx.sendRawTransaction(signedTxn);
console.log("broadcast =>", ret);
}
main().then(() => {
})
.catch((err) => {
console.log("error:", err);
});
Mint TRXI with TokenPocket Wallet
- Receiver address:T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb.
- Transfer amount 0.000001 TRX
- Click on Advanced Settings and fill in
data:,{"p":"trc-20","op":"mint","tick":"trxi","amt":"1000"}
Idea for developing indexer
- Recording the block number of deploy inscription.
- Get all transactions of black hole address.
- Use the FULL NODE HTTP API to get the
from,to,datafield of each txid, match all mint inscriptions. For more details, please refer to the following link: https://developers.tron.network/reference/wallet-gettransactionbyid. - The obtained addresses need to undergo encoding conversion to Tron wallet addresses. For more details, please refer to the following link: https://www.btcschools.net/tron/tron_tool_base58check_hex.php.
Indexer(TBA)
FAQ
Why you need transfer to T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb account?
Because TRON blockchain cannot transfer to yourself address.We decided transfer to the black hole address of the TRON blockchain. Refer to the black hole address given in the official documentation of the TRON blockchain.
Why you need transfer to 0.000001 TRX to black hole address?
Because TRON blockchain cannot transfer zero amount, 0.000001 TRX is the minimum transfer amount.
View on GitHub60/100
Security Score
Audited on Mar 4, 2025
No findings
