View Source Radixir.Core.Request.BuildTransaction (radixir v0.0.3)

Methods to create each map in BuildTransaction request body.

Link to this section Summary

Functions

Adds operation_groups to BuildTransaction request body.

Generates stitch plan for disable_resource_allocate_and_destroy map in BuildTransaction request body.

Generates stitch plan for fee_payer map in BuildTransaction request body.

Generates stitch plan for message map in BuildTransaction request body.

Generates stitch plan for network_identifier map in BuildTransaction request body.

Generates stitch plan for sub_entity map in BuildTransaction request body.

Link to this section Types

Specs

operations_groups() :: [map()]

Specs

params() :: keyword()

Specs

request() :: map()

Specs

stitch_plans() :: [keyword()]

Link to this section Functions

Link to this function

add_operation_groups(request, operations_groups)

View Source

Specs

add_operation_groups(request(), operations_groups()) :: stitch_plans()

Adds operation_groups to BuildTransaction request body.

Parameters

  • request: Request body.
  • operation_groups: List of operation maps to be added to request body.
Link to this function

disable_resource_allocate_and_destroy(stitch_plans, params)

View Source

Specs

disable_resource_allocate_and_destroy(stitch_plans(), params()) ::
  stitch_plans()

Generates stitch plan for disable_resource_allocate_and_destroy map in BuildTransaction request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • disable_resource_allocate_and_destroy (required, boolean): Disable resource allocate and destroy.
Link to this function

fee_payer(stitch_plans, params \\ [])

View Source

Specs

fee_payer(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for fee_payer map in BuildTransaction 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.
Link to this function

message(stitch_plans, params)

View Source

Specs

message(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for message map in BuildTransaction request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • message (required, string): Message.
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 BuildTransaction 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

sub_entity(stitch_plans, params)

View Source

Specs

sub_entity(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for sub_entity map in BuildTransaction request body.

Parameters

  • stitch_plans: On-going stitch plans that will be stitched into a map.
  • params: Keyword list that contains:
    • address (required, string): Sub Entity address.
    • validator_address (optional, string): Validator address.
    • epoch_unlock (optional, integer): Epoch unlock.