11
11
def main ():
12
12
parser = argparse .ArgumentParser (
13
13
formatter_class = argparse .RawDescriptionHelpFormatter ,
14
- description = "Инструмент командной строки для взаимодействия с TronAPI" )
14
+ description = "Command line tool for interacting with TronAPI" )
15
15
16
16
parser .add_argument (
17
17
'--node' ,
@@ -20,23 +20,23 @@ def main():
20
20
help = 'URL полной ноды (default: "http://13.125.210.234:8090")'
21
21
)
22
22
23
- subparsers = parser .add_subparsers (help = 'Команды ' )
23
+ subparsers = parser .add_subparsers (help = 'Commands ' )
24
24
25
- parser_send = subparsers .add_parser ('send' , help = 'Отправляем транзакцию ' )
25
+ parser_send = subparsers .add_parser ('send' , help = 'Send transaction ' )
26
26
parser_send .set_defaults (command = "send" )
27
- parser_send .add_argument ('fromaddress' , type = str , help = 'Адрес отправителя ' )
28
- parser_send .add_argument ('toaddress' , type = str , help = 'Адрес получателя ' )
29
- parser_send .add_argument ('amount' , type = float , help = 'Сумма отправки ' )
30
- parser_send .add_argument ('privatekey' , type = str , help = 'Приватный ключ ' )
31
-
32
- parser .add_argument ("--gettransaction" , action = "store" , help = "Получаем информацию о транзакции по TxID " )
33
- parser .add_argument ("--getaccount" , action = "store" , help = "Информация об аккаунте " )
34
- parser .add_argument ("--getbalance" , action = "store" , help = "Получение баланса " )
27
+ parser_send .add_argument ('fromaddress' , type = str , help = 'From address ' )
28
+ parser_send .add_argument ('toaddress' , type = str , help = 'To address ' )
29
+ parser_send .add_argument ('amount' , type = float , help = 'Amount ' )
30
+ parser_send .add_argument ('privatekey' , type = str , help = 'Private key ' )
31
+
32
+ parser .add_argument ("--gettransaction" , action = "store" , help = "Get TxID transaction information " )
33
+ parser .add_argument ("--getaccount" , action = "store" , help = "Account Information " )
34
+ parser .add_argument ("--getbalance" , action = "store" , help = "Getting a balance " )
35
35
parser .add_argument ("--getbandwidth" , action = "store" ,
36
- help = "Выбирает доступную пропускную способность для определенной учетной записи " )
37
- parser .add_argument ("--getcurrentblock" , action = "store_true" , help = "Последний номер блока " )
38
- parser .add_argument ("--gettransactioncount" , action = "store_true" , help = "Получаем общий счетчик транзакций " )
39
- parser .add_argument ("--generateaddress" , action = "store_true" , help = "Генерация нового адреса " )
36
+ help = "Query bandwidth information. " )
37
+ parser .add_argument ("--getcurrentblock" , action = "store_true" , help = "Last block number " )
38
+ parser .add_argument ("--gettransactioncount" , action = "store_true" , help = "Get the total transaction count " )
39
+ parser .add_argument ("--generateaddress" , action = "store_true" , help = "Generate new address " )
40
40
41
41
args = parser .parse_args ()
42
42
0 commit comments