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
Copy file name to clipboardExpand all lines: README.md
+71-25Lines changed: 71 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,11 @@
2
2
3
3
Welcome to use the Wallet-CLI.
4
4
5
-
If you need any help, please join the [Telegram](https://t.me/TronOfficialDevelopersGroupEn)
5
+
Wallet-cli now supports GasFree features, allowing users to perform token transfers without paying gas fees directly. For more detail, please check the [GasFree](#GasFree-Support) section below.
6
+
7
+
The underlying implementation of all Wallet-cli gRPC APIs has all migrated to the [Trident APIs](https://github.com/tronprotocol/trident). The migration represents a significant architectural shift. This strategic move consolidates the underlying implementation of the Wallet-cli's remote procedure calls, standardizing them under the robust and optimized Trident API framework. This unification not only streamlines development and maintenance efforts but also enhances the overall reliability, performance, and scalability of the Wallet-cli. The Trident APIs, known for their efficiency and comprehensive capabilities, now serve as the sole foundation for all gRPC interactions within the Wallet-cli, ensuring a consistent and high-quality experience for users and developers alike.
8
+
9
+
If you need any help, please join the [Telegram](https://t.me/TronOfficialDevelopersGroupEn).
6
10
7
11
## Get started
8
12
@@ -14,37 +18,65 @@ If you need any help, please join the [Telegram](https://t.me/TronOfficialDevelo
14
18
15
19
```
16
20
net {
17
-
type = mainnet
18
-
# type = testnet
21
+
type = mainnet
22
+
# type = testnet
19
23
}
20
24
21
25
fullnode = {
22
26
ip.list = [
23
-
"fullnode ip : port"
27
+
"127.0.0.1:50051"
24
28
]
25
29
}
26
30
27
-
soliditynode = {
28
-
// the IPs in this list can only be totally set to solidity or pBFT.
29
-
ip.list = [
30
-
"ip : solidity port" // default solidity
31
-
]
31
+
#soliditynode = {
32
+
# // the IPs in this list can only be totally set to solidity.
32
33
# ip.list = [
33
-
# "ip : pBFT port" // or pBFT
34
+
# "127.0.0.1:50052" // default solidity
34
35
# ]
35
-
} // NOTE: solidity node is optional
36
+
# // NOTE: solidity node is optional
37
+
#}
38
+
39
+
# open ledger debug
40
+
# ledger_debug = true
41
+
42
+
# To use the lock and unlock function of the login account, it is necessary to configure
43
+
# lockAccount = true in the config.conf. The current login account is locked, which means that
44
+
# signatures and transactions are not allowed. After the current login account is locked, it can be
45
+
# unlocked. By default, it will be unlocked again after 300 seconds. Unlocking can specify
46
+
# parameters in seconds.
47
+
48
+
# lockAccount = true
49
+
50
+
# To use the gasfree feature, please first apply for an apikey and apiSecret.
# If gRPC requests on the main network are limited in speed, you can apply for a apiKey of trongrid to improve the user experience
65
+
grpc = {
66
+
mainnet = {
67
+
apiKey = ""
68
+
}
69
+
}
36
70
37
-
blockNumberStartToScan = 22690588 // NOTE: this field is optional
38
71
```
39
72
40
73
### Run a web wallet
41
74
42
-
- connect to fullNode and solidityNode
75
+
- connect to fullNode
43
76
44
77
Take a look at: [java-tron deployment](https://tronprotocol.github.io/documentation-en/developers/deployment/)
45
-
Run both fullNode and solidity node in either your local PC or remote server.
78
+
Run fullNode in either your local PC or remote server.
46
79
47
-
NOTE: These nodes would consume a lot of memory and CPU. Please be aware if you do not use wallet, just kill them.
48
80
- compile and run web wallet
49
81
50
82
```console
@@ -58,6 +90,7 @@ blockNumberStartToScan = 22690588 // NOTE: this field is optional
58
90
59
91
Wallet-cli connect to java-tron via gRPC protocol, which can be deployed locally or remotely. Check **Run a web Wallet** section.
60
92
We can configure java-tron node IP and port in ``src/main/resources/config.conf``, so that wallet-cli server can successfully talk to java-tron nodes.
93
+
Besides that, you can simply use `SwitchNetwork` command to switch among the mainnet, testnets(Nile and Shasta) and custom networks. Please refer to the Switch Network section.
61
94
62
95
## Wallet-cli supported command list
63
96
@@ -1842,10 +1875,22 @@ wallet> currentnetwork
1842
1875
current network: CUSTOM
1843
1876
fullNode: EMPTY, solidityNode: localhost:50052
1844
1877
```
1878
+
## Gas Free Support
1879
+
1880
+
Wallet-cli now supports GasFree integration. This guide explains the new commands and provides instructions on how to use them.
1881
+
1882
+
For more details, please refer to [GasFree Documentation](https://gasfree.io/specification) and [TronLink User Guide For GasFree](https://support.tronlink.org/hc/en-us/articles/38903684778393-GasFree-User-Guide).
1845
1883
1846
-
## gas free info
1847
-
> GasFreeInfo
1848
-
>Get gasfree info of the current address.
1884
+
Prerequisites
1885
+
API Credentials: Users must obtain the API Key and API Secret from GasFree for authentication. Please refer to the official [application form](https://docs.google.com/forms/d/e/1FAIpQLSc5EB1X8JN7LA4SAVAG99VziXEY6Kv6JxmlBry9rUBlwI-GaQ/viewform) for instructions on setting up API authentication.
1886
+
1887
+
New Commands:
1888
+
1889
+
### Gas Free info
1890
+
> GasFreeInfo
1891
+
Query GasFree Information
1892
+
Function: Retrieve the basic info, including the GasFree address associated with your current wallet address.
1893
+
Note: The GasFree address is automatically activated upon the first transfer, which may incur an activation fee.
0 commit comments