View Source Radixir.Gateway.API (radixir v0.0.3)

Submits requests to Gateway API.

Link to this section Summary

Functions

Submits request to /transaction/build.

Submits request to /account/derive.

Submits request to /token/derive.

Submits request to /validator/derive.

Submits request to /transaction/finalize.

Submits request to /account/balances.

Submits request to /account/transactions.

Submits request to /gateway.

Submits request to /token/native.

Submits request to /account/stakes.

Submits request to /token.

Submits request to /transaction/rules.

Submits request to /transaction/status.

Submits request to /account/unstakes.

Submits request to /validator.

Submits request to /validator/stakes.

Submits request to /validators.

Submits request to /transaction/submit.

Link to this section Types

Specs

body() :: map()

Specs

options() :: keyword()

Link to this section Functions

Link to this function

build_transaction(body, options \\ [])

View Source

Specs

build_transaction(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /transaction/build.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

derive_account_identifier(body, options \\ [])

View Source

Specs

derive_account_identifier(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /account/derive.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

derive_token_identifier(body, options \\ [])

View Source

Specs

derive_token_identifier(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /token/derive.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

derive_validator_identifier(body, options \\ [])

View Source

Specs

derive_validator_identifier(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /validator/derive.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

finalize_transaction(body, options \\ [])

View Source

Specs

finalize_transaction(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /transaction/finalize.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_account_balances(body, options \\ [])

View Source

Specs

get_account_balances(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /account/balances.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_account_transactions(body, options \\ [])

View Source

Specs

get_account_transactions(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /account/transactions.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Specs

get_info(options()) :: {:ok, map()} | {:error, map()}

Submits request to /gateway.

Parameters

  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_native_token_info(body, options \\ [])

View Source

Specs

get_native_token_info(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /token/native.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_stake_positions(body, options \\ [])

View Source

Specs

get_stake_positions(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /account/stakes.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_token_info(body, options \\ [])

View Source

Specs

get_token_info(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /token.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_transaction_rules(body, options \\ [])

View Source

Specs

get_transaction_rules(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /transaction/rules.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_transaction_status(body, options \\ [])

View Source

Specs

get_transaction_status(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /transaction/status.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_unstake_positions(body, options \\ [])

View Source

Specs

get_unstake_positions(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /account/unstakes.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_validator(body, options \\ [])

View Source

Specs

get_validator(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /validator.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_validator_stakes(body, options \\ [])

View Source

Specs

get_validator_stakes(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /validator/stakes.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

get_validators(body, options \\ [])

View Source

Specs

get_validators(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /validators.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation

Link to this function

submit_transaction(body, options \\ [])

View Source

Specs

submit_transaction(body(), options()) :: {:ok, map()} | {:error, map()}

Submits request to /transaction/submit.

Parameters

  • body: Request body.
  • options: Keyword list that contains
    • url (optional, string): If url is not found in options then the url set in the configs will be used.

Gateway API Documentation