View Source Radixir.Gateway.Request.GetValidatorStakes (radixir v0.0.3)

Methods to create each map in GetValidatorStakes request body.

Link to this section Summary

Functions

Generates stitch plan for at_state_identifier map in GetValidatorStakes request body.

Generates stitch plan for cursor map in GetValidatorStakes request body.

Generates stitch plan for limit map in GetValidatorStakes request body.

Generates stitch plan for network_identifier map in GetValidatorStakes request body.

Generates stitch plan for validator_identifier map in GetValidatorStakes request body.

Link to this section Types

Specs

params() :: keyword()

Specs

stitch_plans() :: [keyword()]

Link to this section Functions

Link to this function

at_state_identifier(stitch_plans, params)

View Source

Specs

at_state_identifier(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for at_state_identifier map in GetValidatorStakes request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • version (optional, integer): Version.
    • timestamp (optional, string): Timestamp.
    • epoch (optional, integer): Epoch.
    • round (optional, integer): Round.
Link to this function

cursor(stitch_plans, params)

View Source

Specs

cursor(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for cursor map in GetValidatorStakes request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • cursor (required, string): Cursor.
Link to this function

limit(stitch_plans, params)

View Source

Specs

limit(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for limit map in GetValidatorStakes request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • limit (required, integer): Limit.
Link to this function

network_identifier(stitch_plans, params \\ [])

View Source

Specs

network_identifier(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for network_identifier map in GetValidatorStakes request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • network (optional, string): If network is not in params it will default to what is returned from Radixir.Config.network().
Link to this function

validator_identifier(stitch_plans, params)

View Source

Specs

validator_identifier(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for validator_identifier map in GetValidatorStakes request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • address (required, string): Radix address.