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.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
ticker | string | ✓ | - | Ticker of the BCH-based coin you want to enable. |
mode | object | ✓ | - | A standard ActivationMode object. |
bchd_urls | array 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_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_slp_unsafe_conf | boolean | ✗ | false | If 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_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 BCH. |
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. |
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
}
}
}
}