These docs are for v2.0. Click to read the latest docs for v3.0.

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