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.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
ticker | string | ✓ | - | Ticker of the QTUM-based coin you want to enable. |
mode | object | ✓ | - | A standard ActivationMode object. |
qtum_node_urls | array 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_requests | array of objects | ✗ | - | A list of standard TokensRequest objects. |
address_format | object | ✗ | - | Overwrites the address format from coins file, if set. A standard AddressFormat object. |
allow_qrc20_unsafe_conf | boolean | ✗ | false | If 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_balances | boolean | ✗ | true | If false, coin and token balances will not be returned in the response, and the response will be returned more quickly. |
required_confirmations | integer | ✗ | 3 | Confirmations to wait for steps in swap. |
requires_notarization | boolean | ✗ | true | Has no effect on QTUM. |
tx_history | boolean | ✗ | true | If 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_params | object | ✗ | - | A standard UtxoMergeParams object. Used to reduce a wallet's UTXO count in cases where it is causing significantly slower RPC responses. |
Parameter | Type | Description |
---|---|---|
task_id | integer | An 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
}
}
}
}