JSON-RPC getwalletinfo
Z Poznámkový blok
getwalletinfo
Returns an object containing various wallet state info.
Result:
{
"walletname": xxxxx, (string) the wallet name
"walletversion": xxxxx, (numeric) the wallet version
"balance": xxxxxxx, (numeric) the total confirmed balance of the wallet in LTC
"unconfirmed_balance": xxx, (numeric) the total unconfirmed balance of the wallet in LTC
"immature_balance": xxxxxx, (numeric) the total immature balance of the wallet in LTC
"txcount": xxxxxxx, (numeric) the total number of transactions in the wallet
"keypoololdest": xxxxxx, (numeric) the timestamp (seconds since Unix epoch) of the oldest pre-generated key in the key pool
"keypoolsize": xxxx, (numeric) how many new keys are pre-generated (only counts external keys)
"keypoolsize_hd_internal": xxxx, (numeric) how many new keys are pre-generated for internal use (used for change outputs,
only appears if the wallet is using this feature, otherwise external keys are used)
"unlocked_until": ttt, (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the
wallet is unlocked for transfers, or 0 if the wallet is locked
"paytxfee": x.xxxx, (numeric) the transaction fee configuration, set in LTC/kB
"hdmasterkeyid": "" (string, optional) the Hash160 of the HD master pubkey (only present when HD is enabled)
}
Examples:
> litecoin-cli getwalletinfo
getwalletinfo
Vrátí objekt obsahující různé informace o stavu peněženky.
Výsledek:
{{
"název peněženky": xxxxx, (řetězec) název peněženky
"peněženka": xxxxx, (numerická) verze peněženky
"zůstatek": xxxxxxx, (číselný) celkový potvrzený zůstatek peněženky v LTC
"unconfirmed_balance": xxx, (číselný) celkový nepotvrzený zůstatek peněženky v LTC
"immature_balance": xxxxxx, (číselný) celkový nedospělý zůstatek peněženky v LTC
"txcount": xxxxxxx, (číselný) celkový počet transakcí v peněžence
"keypoololdest": xxxxxx, (číselné) časové razítko (sekundy od epochy Unix) nejstaršího předem vygenerovaného klíče v klíči klíče
"keypoolsize": xxxx, (numeric) kolik nových klíčů je předem generováno (pouze počítá externí klíče)
"keypoolsize_hd_internal": xxxx, (číselné) kolik nových klíčů je předběžně generováno pro interní použití (používá se pro změny
výstupů, zobrazí se pouze v případě, že tuto funkci používá peněženka, jinak se používají externí klíče)
"unlocked_until": ttt, (číselné) časové razítko v sekundách od epochy (půlnoci 1. ledna 1970 GMT),
že peněženka je odemčena pro převody nebo 0, je-li peněženka uzamčena
"paytxfee": x.xxxx, (číselné) konfigurace poplatku za transakci nastavenou v LTC / kB
"hdmasterkeyid": "" (řetězec, volitelně) Hash160 nadřízeného magistrátu HD (přítomen pouze při povoleném HD)
}}