You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abi: the api information of all the function of the smart contract
1609
-
bytecode: smart contract byte code
1610
-
call_value: TRX transferred into smart contract while call the contract
1611
-
consume_user_resource_percent: resource consumption percentage set by the developer
1612
-
name: smart contract name
1613
-
origin_energy_limit: energy consumption of the developer limit in one call, must be greater than 0. For the old contracts, if this parameter is not set, it will be set 0, developer can use updateEnergyLimit api to update this parameter (must greater than 0)</p>
<li>abi: the api information of all the function of the smart contract</li>
1610
+
<li>bytecode: smart contract byte code</li>
1611
+
<li>call_value: TRX transferred into smart contract while call the contract</li>
1612
+
<li>consume_user_resource_percent: resource consumption percentage set by the developer</li>
1613
+
<li>name: smart contract name</li>
1614
+
<li>origin_energy_limit: energy consumption of the developer limit in one call, must be greater than 0. For the old contracts, if this parameter is not set, it will be set 0, developer can use updateEnergyLimit api to update this parameter (must greater than 0)</li>
1615
+
</ul>
1614
1616
<p>Through other two grpc message types CreateSmartContract and TriggerSmartContract to create and use smart contract.</p>
1615
1617
<h3id="usage-of-the-function-of-smart-contract">Usage of the Function of Smart Contract<aclass="headerlink" href="#usage-of-the-function-of-smart-contract" title="Permanent link">¶</a></h3>
@@ -1560,7 +1560,7 @@ <h1 id="getting-started-with-java-tron">Getting Started with java-tron<a class="
1560
1560
<p>This page mainly explains how to start the java-tron node and use the command line tool <code>wallet-cli</code> to execute basic commands to interact with the java-tron node. Regarding the installation of java-tron, you can download the runnable file directly or build it from source code. Instructions for installing java-tron can be found on the <ahref="../../using_javatron/installing_javatron/">Install and Build</a> page. This tutorial on this page assumes java-tron and associated developer tools have been successfully installed.</p>
1561
1561
<p>This page covers the basics of using java-tron, which includes generating accounts, joining the TRON Nile testnet, and sending TRX between accounts. wallet-cli is also used in this document. wallet-cli is a command-line tool of the TRON network. This tool provides user interactive commands, which can be used to interact with java-tron more conveniently.</p>
1562
1562
<p>java-tron is a TRON network client written in Java. This means a computer running java-tron will become a TRON network node. TRON is a distributed network where information is shared directly between nodes rather than being managed by a central server. After the super representative's node generates a new block, it will send the block to its peers. On receiving a new block, each node checks that it is valid and adds it to their database. java-tron uses the information provided by each block to update its "state" - the balance of each account on the TRON network. There are two types of accounts on the TRON network: externally owned accounts and contract accounts. The contract account executes the contract code when a transaction is received. An external account is an account that a user manages locally in order to sign and submit transactions. Each external account is a public-private key pair, where the public key is used to derive a unique address for the user, and the private key is used to protect the account and securely sign messages. Therefore, in order to use the TRON network, it is first necessary to generate an external account (hereinafter referred to as "account"). This tutorial will guide users on how to create an account, deposit TRX tokens, and transfer TRX.</p>
<p>There are various ways to generate a TRON network account, here we will demonstrate how to generate an account using wallet-cli. An account is a pair of keys (public and private keys).</p>
1565
1565
<p>Enter the command <code>java -jar wallet-cli.jar</code> in the terminal to start a wallet-cli:
0 commit comments