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
Link to this type

start_ledger_validation()

View Source
@type start_ledger_validation() :: {:ok, start_ledger()} | error()

Functions

@spec validate_cursor(cursor :: cursor()) :: cursor_validation()
@spec validate_limit(limit :: limit()) :: limit_validation()
Link to this function

validate_start_ledger(start_ledger)

View Source
@spec validate_start_ledger(start_ledger :: start_ledger()) ::
  start_ledger_validation()