View Source Soroban.RPC.EventsPayload (Soroban v0.10.0)

EventsPayload struct definition.

Link to this section Summary

Link to this section Types

@type args() :: Keyword.t()
@type cursor() :: binary() | nil
@type cursor_validation() :: {:ok, cursor()}
@type error() :: {:error, atom()}
@type filters() :: [Soroban.RPC.EventFilter.t()] | nil
@type filters_validation() :: {:ok, filters()} | error()
@type limit() :: number() | nil
@type limit_validation() :: {:ok, limit()}
@type pagination() :: map() | nil
Link to this type

pagination_validation()

View Source
@type pagination_validation() :: {:ok, pagination()} | error()
@type request_args() :: map() | :error
@type start_ledger() :: String.t() | nil
Link to this type

start_ledger_validation()

View Source
@type start_ledger_validation() :: {:ok, start_ledger()} | error()
@type t() :: %Soroban.RPC.EventsPayload{
  filters: filters(),
  pagination: pagination(),
  start_ledger: start_ledger()
}

Link to this section Functions

@spec new(args :: args()) :: t()
@spec to_request_args(t()) :: request_args()