diff --git a/docs/getting_started/getting_started_with_javatron.md b/docs/getting_started/getting_started_with_javatron.md index f66946c4..3800d5d2 100644 --- a/docs/getting_started/getting_started_with_javatron.md +++ b/docs/getting_started/getting_started_with_javatron.md @@ -33,7 +33,7 @@ There are two main types of accounts on the TRON network: To begin interacting with the TRON network, you first need to create an Externally Owned Account (hereafter referred to as an "account"). There are several ways to create a TRON account, including using Software Development Kits (SDKs) like [Trident-java](https://tronprotocol.github.io/trident/) and [TronWeb](https://tronweb.network/), or various wallet applications (such as the browser extension wallet, [TronLink](https://www.tronlink.org/)). -This guide will use the command-line tool `wallet-cli` to demonstrate the most fundamental account operations. +This guide use the command-line tool `wallet-cli` to demonstrate fundamental account operations. > **About `wallet-cli`** > @@ -83,14 +83,14 @@ currentNetwork: NILE **1. Register Account** -At the prompt, enter the `registerwallet` command and follow the instructions to set a secure password. This command generates a new TRON network account and registers it with `wallet-cli`, which means its encrypted private key is stored in the local keystore for future use in signing transactions. +At the prompt, enter the `registerwallet` command and follow the instructions to set a secure password. This command generates a new TRON network account and registers it with `wallet-cli`, storing the encrypted private key locally for future transaction signing. ``` wallet> registerwallet Please input password. password: -user defined config file doesn't exists, use default config file in jar +user defined config file doesn't exist, use default config file in jar WalletApi getRpcVsersion: 2 Please input password again. password: @@ -149,7 +149,7 @@ After completing all the above preparations, you now have a properly configured ## Skill 2: Start and Run a Java-tron Node -This module will guide you through launching a java-tron instance, turning your computer into a TRON FullNode. Running your own node provides you with the most stable, reliable, and rate-unlimited network access. The network used in this module is the TRON [Nile Testnet](https://nileex.io/). +This module guide you through launching a java-tron instance, turning your computer into a TRON FullNode. Running your own node provides you with the most stable, reliable, and rate-unlimited network access. The network used in this module is the TRON [Nile Testnet](https://nileex.io/). > Tips: > @@ -259,7 +259,7 @@ The result is as follows: "address": "TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM", "balance": 93643857919, "create_time": 1619681898000, - "latest_opration_time": 1655358327000, + "latest_operation_time": 1655358327000, "is_witness": true, "asset_issued_name": "TestTRC10T", "latest_consume_free_time": 1652948766000, @@ -325,8 +325,8 @@ This command returns a transaction pending confirmation. Please follow the steps Please confirm and input your permission id, if input y or Y means default 0, other non-numeric characters will cancel transaction. y Please choose your key for sign. -The 1th keystore file name is .DS_Store -The 2th keystore file name is UTC--2022-07-04T06-35-35.304000000Z--TQXjm2J8K2DKTV49MdfT2anjUehbU3WDJz.json +The 1st keystore file name is .DS_Store +The 2nd keystore file name is UTC--2022-07-04T06-35-35.304000000Z--TQXjm2J8K2DKTV49MdfT2anjUehbU3WDJz.json The 3th keystore file name is UTC--2022-06-21T09-51-26.367000000Z--TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM.json Please choose between 1 and 3 3 @@ -405,9 +405,9 @@ After you send a transaction, the `wallet-cli` terminal returns a unique transac ### Method Two: Using `cURL` (Direct HTTP API Call) -While `wallet-cli` provides user-friendly interactive commands, more advanced developers or those working in automated scripting scenarios may find it more flexible and efficient to interact with a java-tron node directly via its HTTP API. This section demonstrates how to use `cURL` (a command-line tool for sending HTTP requests) to call the java-tron node's HTTP API to perform core functions like querying account balances and sending transactions. +While `wallet-cli` provides user-friendly interactive commands, advanced developers or those working on automated scripts scenarios may find it more flexible and efficient to interact with a java-tron node directly via its HTTP API. This section demonstrates how to use `cURL` (a command-line tool for sending HTTP requests) to call the java-tron node's HTTP API to perform core functions like querying account balances and sending transactions. -Unlike `wallet-cli`, which automatically handles signing and broadcasting, sending a transaction by directly calling the API requires you to manually complete a standard three-step process: **Create -> Sign -> Broadcast**. This section will show you how to execute this process. +Unlike `wallet-cli`, which automatically handles signing and broadcasting, using the API requires you to manually complete a three-step process: **Create -> Sign -> Broadcast**. This section will show you how to execute this process. #### Prerequisite: Query Account Balance @@ -436,7 +436,7 @@ In the returned JSON data, the `balance` field represents the TRX balance of the Now, let's use a TRX transfer as an example to fully demonstrate the "Create-Sign-Broadcast" three-step process for sending a transaction to java-tron. -Srtep 1 - Create a Transaction +Step 1 - Create a Transaction Use the FullNode's `wallet/createtransaction` HTTP endpoint to create an unsigned TRX transfer transaction. In the request body, specify the sender (`owner_address`), recipient (`to_address`), and amount (`amount`).