Olej писал(а): ↑03 июл 2023, 10:42
скрипт запуска демона/сервера
Теперь клиент:
Код: Выделить всё
olej@R420:~/2023/EmerCoin/emercoin.git/src$ ./emercoin-cli -version
Emercoin Core RPC client version v0.8.0.0-00596f21a
Это его команды:
Код: Выделить всё
olej@R420:~/2023/EmerCoin/emercoin.git/src$ ./emercoin-cli help | wc -l
171
Код: Выделить всё
olej@R420:~/2023/EmerCoin/emercoin.git/src$ ./emercoin-cli getinfo
{
"fullversion": "v0.8.0.0-00596f21a",
"version": 80000,
"protocolversion": 70015,
"walletversion": 130000,
"balance": 5.997100,
"newmint": 0.000000,
"stake": 0.000000,
"blocks": 610275,
"moneysupply": 51034837.497499,
"timeoffset": 0,
"connections": 7,
"proxy": "",
"pow-difficulty": 4875037058373.138,
"pos-difficulty": 20.29727957491392,
"testnet": false,
"keypoololdest": 1677163679,
"keypoolsize": 999,
"paytxfee": 0.000100,
"relayfee": 0.000100,
"encrypted": false,
"mintonly": false,
"errors": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"
}
Это так берётся справка по отдельной (самой интересной) команде:
Код: Выделить всё
olej@R420:~/2023/EmerCoin/emercoin-v0.7.11emc-static$ ./emercoin-cli help name_filter
name_filter [regexp] [maxage=0] [from=0] [nb=0] [stat] [valuetype]
scan and filter names
[regexp] : apply [regexp] on names, empty means all names
[maxage] : look in last [maxage] blocks
[from] : show results from number [from]
[nb] : show [nb] results, 0 means all
[stat] : show some stats instead of results
[valuetype] : if "hex" or "base64" is specified then it will print value in corresponding format instead of string.
name_filter "" 5 # list names updated in last 5 blocks
name_filter "^id/" # list all names from the "id" namespace
name_filter "^id/" 0 0 0 stat # display stats (number of names) on active names from the "id" namespace
Это зарегистрированные в блокчейне EmerDNS записи DNS (некоторые):
Код: Выделить всё
olej@R420:~/2023/EmerCoin/emercoin.git/src$ ./emercoin-cli name_filter "dns:*" 0 0 3
[
{
"name": "dns:",
"value": "A=108.28.111.72|TXT=Empty Record Parked|TTL=100000",
"registered_at": 60161,
"expires_in": 1199711
},
{
"name": "dns",
"value": "dns",
"registered_at": 582007,
"expires_in": 12746732
},
{
"name": "dns:\u0000",
"value": "\u0000",
"registered_at": 584768,
"expires_in": 375243
}
]
Это вот зарегистрированные DNS-записи наши, форума:
Код: Выделить всё
olej@R420:~/2023/EmerCoin/emercoin.git/src$ ./emercoin-cli name_filter "dns:*" | grep linux-ru
"name": "dns:linux-ru.lib",
"name": "dns:ygg.linux-ru.lib",