mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-06 20:25:50 +00:00
* Retrieve and process summary or full ledgers. * Search using arbitrary criteria (any Python function). * Search using arbitrary formats (any Python function). * Caches ledgers as .gz files to avoid repeated server requests. * Handles ledger numbers, ranges, and special names like validated or closed.
17 lines
364 B
Python
17 lines
364 B
Python
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
from ripple.ledger.Args import ARGS
|
|
from ripple.ledger import SearchLedgers
|
|
|
|
import json
|
|
|
|
SAFE = True
|
|
|
|
HELP = """print
|
|
|
|
Print the ledgers to stdout. The default command."""
|
|
|
|
def run_print(server):
|
|
for x in ARGS.display(server, SearchLedgers.search(server)):
|
|
print(x)
|