View Source Soroban.RPC.Helper (Soroban v0.21.0)
Helper functions for RPC endpoints.
Summary
Types
@type cursor() :: binary() | nil
@type cursor_validation() :: {:ok, cursor()}
@type error() :: {:error, atom()}
@type limit() :: number() | nil
@type limit_validation() :: {:ok, limit()}
@type start_ledger() :: non_neg_integer() | nil
@type start_ledger_validation() :: {:ok, start_ledger()} | error()
Functions
@spec validate_cursor(cursor :: cursor()) :: cursor_validation()
@spec validate_limit(limit :: limit()) :: limit_validation()
@spec validate_start_ledger(start_ledger :: start_ledger()) :: start_ledger_validation()