View Source Stellar.Horizon.Effects (Elixir Stellar SDK v0.22.0)
Exposes functions to interact with Effects in Horizon.
You can:
- List all effects.
Horizon API reference: https://developers.stellar.org/api/resources/effects/
Summary
Functions
Lists all effects.
Types
@type options() :: Keyword.t()
@type resource() :: Stellar.Horizon.Effect.t() | Stellar.Horizon.Collection.t()
@type response() :: {:ok, resource()} | {:error, Stellar.Horizon.Error.t()}
@type server() :: Stellar.Horizon.Server.t()
Functions
Lists all effects.
Parameters
server
: The Horizon server to query.
Options
cursor
: A number that points to a specific location in a collection of responses and is pulled from thepaging_token
value of a record.order
: A designation of the order in which records should appear. Options includeasc
(ascending) ordesc
(descending).limit
: The maximum number of records returned. The limit can range from 1 to 200. Defaults to 10.
Examples
iex> Effects.all(Stellar.Horizon.Server.testnet(), limit: 10, order: :asc)
{:ok, %Collection{records: [%Effect{}, ...]}}