-
Notifications
You must be signed in to change notification settings - Fork 177
bx fetch height
thecodefactory edited this page Mar 23, 2018
·
22 revisions
Get the last block height.
$ bx fetch-height --help
Usage: bx fetch-height [-h] [--config value] [SERVER-URL] [PUBLIC-KEY]
Info: Get the last block height. Requires a Libbitcoin server connection.
Options (named):
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
Arguments (positional):
SERVER-URL The URL of the Libbitcoin server to use. If not
specified the URL is obtained from configuration
settings or defaults.
PUBLIC-KEY The public key of the Libbitcoin server. If not
specified the key is obtained from configuration
settings or defaults.
This command supports configuration settings.
The height reported will increase as more blocks are mined and may vary slightly between servers.
$ bx fetch-height
325956
Specified server-url
$ bx fetch-height tcp://mainnet.libbitcoin.net:9091
514826
Specified server-url and public key (see here for more details)
$ bx fetch-height tcp://mainnet2.libbitcoin.net:9081 "}[YQ:ks:iKd0F1!ycPgj:4CVzfV-=jsF}x&%ff=/"
514826
Specified server-url with an incorrect port number
$ bx fetch-height tcp://obelisk.unsystem.net
timed out
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands