ryan-senn / stellar-elm-sdk / Stellar.Endpoints.EffectsForAccount

Effects for Account Endpoint

Build the Request with required fields

requestBuilder : Stellar.Endpoint.Endpoint -> Stellar.PublicKey.PublicKey -> HttpBuilder.RequestBuilder Response

Request Builder. Takes the mandatory fields as arguments, the optional fields can be piped using setters.

Configure pagination

setCursor : String -> HttpBuilder.RequestBuilder Response -> HttpBuilder.RequestBuilder Response

Set the pagination cursor for the Request.

setLimit : Basics.Int -> HttpBuilder.RequestBuilder Response -> HttpBuilder.RequestBuilder Response

Set the pagination limit for the Request.

setSorting : Stellar.Sorting.Sorting -> HttpBuilder.RequestBuilder Response -> HttpBuilder.RequestBuilder Response

Set the pagination sorting for the Request.

Send the Request & catch Response

send : (Result Http.Error Response -> msg) -> HttpBuilder.RequestBuilder Response -> Platform.Cmd.Cmd msg

Send the request once configured.


type Response
    = Error Stellar.Error.Error
    | Success (Stellar.Resources.Page.Page Stellar.Resources.Effect.Effect)

The Response coming back from the server.