latest contributor to this doc

Last Edit: @smk762 ,

enable_slp

The enable_slp method allows you to activate additional SLP tokens. Before using this method, you first need to use the enable_bch_with_tokens method.

parameterTypeDescription
tickerstringTicker of the SLP token.
activation_params.required_confirmationsintegerOptional. Confirmations to wait for steps in swap. Defaults to value in the coins file if not set.
POST
enable_slp
{
  "userpass": "testpsw",
  "method": "enable_slp",
  "mmrpc": "2.0",
  "params": {
    "ticker": "SPICE-SLP",
    "activation_params": {
      "required_confirmations": 3
    }
  }
}

{
  "mmrpc": "2.0",
  "result": {
    "balances": {
      "simpleledger:qrf5vpn78s7rjexrjhlwyzzeg7gw98k7t5va3wuz4v": {
        "spendable": "0",
        "unspendable": "0"
      }
    },
    "token_id": "7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1",
    "platform_coin": "BCH",
    "required_confirmations": 3
  },
  "id": null
}

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

{
  "mmrpc": "2.0",
  "error": "Token SPICE-SLP is already activated",
  "error_path": "token",
  "error_trace": "token:95]",
  "error_type": "TokenIsAlreadyActivated",
  "error_data": "SPICE-SLP",
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "Token SPICE-SLP-WRONG config is not found",
  "error_path": "token.prelude",
  "error_trace": "token:98] prelude:56]",
  "error_type": "TokenConfigIsNotFound",
  "error_data": "SPICE-SLP-WRONG",
  "id": null
}