On this page

latest contributor to this doc

Last Edit:

@gcharang

enable_tendermint_token

The enable_tendermint_token method allows you to activate additional Tendermint assets. Before using this method, you first need to use the enable_tendermint_with_assets method.

parameterTypeDescription
tickerstringTicker of the Tendermint asset.
activation_params.required_confirmationsintegerOptional. Confirmations to wait for steps in swap. Defaults to value in the coins file if not set.
POST
enable_tendermint_token
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "enable_tendermint_token",
  "mmrpc": "2.0",
  "params": {
    "ticker": "ATOM-IBC_IRIS",
    "activation_params": {
      "required_confirmations": 3
    }
  }
}

{
  "mmrpc": "2.0",
  "result": {
    "balances": {
      "iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k": {
        "spendable": "0.028306",
        "unspendable": "0"
      }
    },
    "platform_coin": "IRIS"
  },
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "Platform coin IRIS is not activated",
  "error_path": "token.lp_coins",
  "error_trace": "token:126] lp_coins:2847]",
  "error_type": "PlatformCoinIsNotActivated",
  "error_data": "IRIS",
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "Token ATOM-IBC_IRIS is already activated",
  "error_path": "token",
  "error_trace": "token:119]",
  "error_type": "TokenIsAlreadyActivated",
  "error_data": "ATOM-IBC_IRIS",
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "Token UP-AND-ATOM config is not found",
  "error_path": "token.prelude",
  "error_trace": "token:122] prelude:79]",
  "error_type": "TokenConfigIsNotFound",
  "error_data": "UP-AND-ATOM",
  "id": null
}