stellar / stellar-cli

CLI for Stellar developers
Apache License 2.0
74 stars 72 forks source link

events should default to last ledger #1613

Open leighmcculloch opened 2 months ago

leighmcculloch commented 2 months ago

The stellar events command requires a ledger or cursor to be specified.

However the CLI provides no utilities for getting the last ledger, or information about a network. There is this open issue to do that:

But also, it's reasonable that someone should be able to run the events subcommand and retrieve events automatically from some point, probably the most recent ledger.

janewang commented 2 months ago

@leighmcculloch I agree with not requiring a last ledger to be specified.

CLI should also be able to provide information like getLatestLedger or getTransaction