Komodo DeFi Framework Method: Enable SLP
API-v2enable_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.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
ticker | string | ✓ | - | Ticker of the SLP token you want to enable. |
activation_params.required_confirmations | integer | ✗ | - | Optional. Confirmations to wait for steps in swap. Defaults to value in the coins file if not set. |
Enable SLP
POST
enable_slp{
"userpass": "RPC_UserP@SSW0RD",
"method": "enable_slp",
"mmrpc": "2.0",
"params": {
"ticker": "SPICE-SLP",
"activation_params": {
"required_confirmations": 3
}
}
}
{
"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
}