UNPKG

@stellar/stellar-sdk

Version:

A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.

21 lines (18 loc) 527 B
import { CallBuilder } from './call_builder.js'; class LedgerCallBuilder extends CallBuilder { constructor(serverUrl, httpClient) { super(serverUrl, httpClient); this.setPath("ledgers"); } /** * Provides information on a single ledger. * @param sequence - Ledger sequence * @returns current LedgerCallBuilder instance */ ledger(sequence) { this.filter.push(["ledgers", sequence.toString()]); return this; } } export { LedgerCallBuilder }; //# sourceMappingURL=ledger_call_builder.js.map