JUMP TOOverviewHook API ConventionsReturn CodesDeveloper DefinedhookcbakControlacceptrollbackUtilitiesutil_raddrutil_accidutil_verifyutil_sha512hutil_keyletSerializationsto_subfieldsto_subarraysto_emplacesto_erasesto_validateEmitted Transactionetxn_burdenetxn_detailsetxn_fee_baseetxn_nonceetxn_reserveetxn_generationemitFloatfloat_setfloat_multiplyfloat_mulratiofloat_negatefloat_comparefloat_sumfloat_stofloat_sto_setfloat_invertfloat_dividefloat_onefloat_exponentfloat_mantissafloat_signfloat_intfloat_rootfloat_logLedgerfee_baseledger_seqledger_last_hashledger_last_timeledger_nonceledger_keyletHook Contexthook_accounthook_hashhook_paramhook_param_sethook_skiphook_poshook_againSlotslotslot_clearslot_countslot_setslot_sizeslot_subarrayslot_subfieldslot_typexpop_slotslot_floatStatestatestate_setstate_foreignstate_foreign_setTrace (Debug)tracetrace_numtrace_floatOriginating Transactionotxn_burdenotxn_fieldotxn_generationotxn_idotxn_typeotxn_slototxn_parammeta_slotWebsocket APIsaccount_infoaccount_namespacePowered by ledger_seqFetch the current ledger sequence numberBehaviour Return the sequence number from the current ledger Definition Cint64_t ledger_seq (); Example Cint64_t seq = ledger_seq(); Parameters This API takes no parameters. Return Code TypeDescriptionint64_tThe sequence number of the current ledger