On this page

latest contributor to this doc

Last Edit:

@smk762

Enable Tendermint Task: Init

API-v2task::enable_tendermint::init

Use this method for task managed activation of Tendermint coins & tokens. Refer to the task managed activation overview for activation of other coin types.

ParameterTypeRequiredDefaultDescription
get_balancesbooleantrueIf false, coin and token balances will not be returned in the response, and the response will be returned more quickly.
mm2integer-Required if not set in coins file. Informs the Komodo DeFi Framework API whether or not the coin is expected to function. Accepted values are 0 or 1.
nodesarray of objects-A list of CoinNode objects.
priv_key_policystringContextPrivKeyValue can be PrivKeyActivationPolicyEnum.
required_confirmationsinteger3When the platform coin is involved, the number of confirmations for the Komodo DeFi Framework API to wait during the transaction steps of an atomic swap.
requires_notarizationbooleanfalseIf true, coins protected by Komodo Platform's dPoW security will wait for a notarization before progressing to the next atomic swap transactions step.
tickerstring-Ticker of the platform protocol coin.
tokens_paramsarray of objects-A list of standard TokensRequest objects.
tx_historybooleanfalseIf true the Komodo DeFi Framework API will preload transaction history as a background process. Must be set to true to use the my_tx_history method.

ParameterTypeDescription
task_idintegerAn identifying number which is used to query task status.

Tendermint Activation (Trezor mode)

POST
task::enable_tendermint::init
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "task::enable_tendermint::init",
  "params": {
    "ticker": "IRIS",
    "tokens_params": [
      {
        "ticker": "ATOM-IBC_IRIS"
      }
    ],
    "nodes": [
      {
        "url": "https://iris-rpc.alpha.komodo.earth/",
        "api_url": "https://iris-api.alpha.komodo.earth/",
        "grpc_url": "https://iris-grpc.alpha.komodo.earth/",
        "ws_url": "wss://iris-rpc.alpha.komodo.earth/websocket"
      },
      {
        "url": "https://rpc.irishub-1.irisnet.org",
        "komodo_proxy": false
      }
    ]
  }
}