Fetch the current ledger sequence number

Behaviour

  • Return the sequence number from the current ledger

Definition

int64_t ledger_seq ();

Example

int64_t seq =
    ledger_seq();

Parameters

This API takes no parameters.

Return Code

TypeDescription
int64_tThe sequence number of the current ledger