UNPKG

@stellar/stellar-sdk

Version:

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

52 lines (51 loc) 2.65 kB
import { CallBuilder } from "./call_builder.js"; import { ServerApi } from "./server_api.js"; import type { HttpClient } from "../http-client/index.js"; /** * Creates a new {@link EffectCallBuilder} pointed to server defined by serverUrl. * Do not create this object directly, use {@link Horizon.Server.effects}. * * @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/effects | All Effects} * * @param serverUrl - Horizon server URL. */ export declare class EffectCallBuilder extends CallBuilder<ServerApi.CollectionPage<ServerApi.EffectRecord>> { constructor(serverUrl: URL, httpClient: HttpClient); /** * This endpoint represents all effects that changed a given account. It will return relevant effects from the creation of the account to the current ledger. * @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-effects-by-account-id | Effects for Account} * @param accountId - For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD` * @returns this EffectCallBuilder instance */ forAccount(accountId: string): this; /** * Effects are the specific ways that the ledger was changed by any operation. * * This endpoint represents all effects that occurred in the given ledger. * @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-ledgers-effects | Effects for Ledger} * @param sequence - Ledger sequence * @returns this EffectCallBuilder instance */ forLedger(sequence: number | string): this; /** * This endpoint represents all effects that occurred as a result of a given transaction. * @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-transactions-effects | Effects for Transaction} * @param transactionId - Transaction ID * @returns this EffectCallBuilder instance */ forTransaction(transactionId: string): this; /** * This endpoint represents all effects that occurred as a result of a given operation. * @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-an-operations-effects | Effects for Operation} * @param operationId - Operation ID * @returns this EffectCallBuilder instance */ forOperation(operationId: string): this; /** * This endpoint represents all effects involving a particular liquidity pool. * * @param poolId - liquidity pool ID * @returns this EffectCallBuilder instance */ forLiquidityPool(poolId: string): this; }