On this page

Enable QTUM Task: Init

API-v2task::enable_qtum::init

Use this method for task managed activation of QTUM and QRC20 tokens. Refer to the task managed activation overview for activation of other coin types.

ParameterTypeRequiredDefaultDescription
tickerstring-Ticker of the QTUM-based coin you want to enable.
modeobject-A standard ActivationMode object.
qtum_node_urlsarray of strings-A list of QTUM node URLs, used for validation of QRC20 token transactions. It's recommended to add as many servers as possible. The URLs list can be found at https://qtumnodes.com/.
qrc20_tokens_requestsarray of objects-A list of standard TokensRequest objects.
address_formatobject-Overwrites the address format from coins file, if set. A standard AddressFormat object.
allow_qrc20_unsafe_confbooleanfalseIf true, allows qtum_node_urls to be empty. Warning: it is highly unsafe to do so as it may lead to invalid QRC20 transactions generation and tokens burning.
get_balancesbooleantrueIf false, coin and token balances will not be returned in the response, and the response will be returned more quickly.
required_confirmationsinteger3Confirmations to wait for steps in swap.
requires_notarizationbooleantrueHas no effect on QTUM.
tx_historybooleantrueIf 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.
utxo_merge_paramsobject-A standard UtxoMergeParams object. Used to reduce a wallet's UTXO count in cases where it is causing significantly slower RPC responses.

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

QTUM/QRC20 Activation (Trezor mode)

POST
task::enable_qtum::init
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "task::enable_qtum::init",
  "params": {
    "ticker": "QTUM",
    "activation_params": {
      "qtum_node_urls": [
        "https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID"
      ],
      "mode": {
        "rpc": "Infura",
        "rpc_data": {
          "servers": [
            {
              "url": "https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID",
              "protocol": "HTTPS"
            }
          ]
        }
      },
      "qrc20_tokens_requests": [
        {
          "ticker": "USDT"
        },
        {
          "ticker": "DAI",
          "required_confirmations": 3
        }
      ],
      "tx_history": true,
      "required_confirmations": 5,
      "requires_notarization": false,
      "address_format": {
        "format": "hex",
        "network": "qtum"
      },
      "utxo_merge_params": {
        "merge_at": 50,
        "check_every": 10,
        "max_merge_at_once": 25
      }
    }
  }
}