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

Methods to create each map in BuildTransaction request body.

Link to this section Summary

Functions

Adds actions to BuildTransaction request body.

Generates stitch plan for at_state_identifier map in BuildTransaction request body.

Generates stitch plan for disable_token_mint_and_burn 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.

Link to this section Types

Specs

actions() :: [map()]

Specs

params() :: keyword()

Specs

request() :: map()

Specs

stitch_plans() :: [keyword()]

Link to this section Functions

Link to this function

add_actions(request, actions)

View Source

Specs

add_actions(request(), actions()) :: stitch_plans()

Adds actions to BuildTransaction request body.

Parameters

  • request: Request body.
  • actions: List of action maps to be added to request body.
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 BuildTransaction 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

disable_token_mint_and_burn(stitch_plans, params)

View Source

Specs

disable_token_mint_and_burn(stitch_plans(), params()) :: stitch_plans()

Generates stitch plan for disable_token_mint_and_burn 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_token_mint_and_burn (required, boolean): Disable Token Mint and Burn.
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().