On this page

Enable BCH Task: Init

deprecatedtask::enable_bch::init

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

ParameterTypeRequiredDefaultDescription
tickerstring-Ticker of the BCH-based coin you want to enable.
modeobject-A standard ActivationMode object.
bchd_urlsarray of strings-A list of BCHD gRPC API server URLs, used for validation of SLP token transactions. It's recommended to add as many servers as possible. The URLs list can be found at https://bchd.fountainhead.cash/.
slp_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_slp_unsafe_confbooleanfalseIf true, allows bchd_urls to be empty. Warning: it is highly unsafe to do so as it may lead to invalid SLP 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 BCH.
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.

BCH/SLP Activation (Trezor mode)

POST
task::enable_bch::init
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "task::enable_bch::init",
  "params": {
    "ticker": "BCH",
    "activation_params": {
      "bchd_urls": [
        "https://bchd.dragonhound.info"
      ],
      "mode": {
        "rpc": "Electrum",
        "rpc_data": {
          "servers": [
            {
              "url": "bch.imaginary.cash:50002",
              "protocol": "SSL"
            },
            {
              "url": "cashnode.bch.ninja:50002",
              "protocol": "SSL"
            },
            {
              "url": "bch.soul-dev.com:50002",
              "protocol": "SSL"
            },
            {
              "url": "electrum3.cipig.net:20055",
              "protocol": "SSL"
            }
          ]
        }
      },
      "slp_tokens_requests": [
        {
          "ticker": "USDF"
        },
        {
          "ticker": "ASLP-SLP",
          "required_confirmations": 3
        }
      ],
      "tx_history": true,
      "required_confirmations": 5,
      "requires_notarization": false,
      "address_format": {
        "format": "cashaddress",
        "network": "bitcoincash"
      },
      "utxo_merge_params": {
        "merge_at": 50,
        "check_every": 10,
        "max_merge_at_once": 25
      }
    }
  }
}