Enable Z Coin Task: Init
ZHTLC coins, like Pirate (ARRR) and the test coin ZOMBIE take a little longer to enable, and use a new two step method to enable. Activation can take a little while the first time, as we need to download some block cache data, and build a wallet database. Subsequent enabling will be faster, but still take a bit longer than other coins. The second step for activation is optional, but allows us to check the status of the activation process.
Refer to the task managed activation overview for activation of other coin types.
To withdraw ZHTLC coins, you need to use the task::withdraw methods:
- Generate a transaction with task::withdraw::init
- Query its status with task::withdraw::status
- Cancel generating the transaction with task::withdraw::cancel
- Broadcast the transaction with send_raw_transaction
ZHTLC coins are not compatible with the v2 my_tx_history and legacy my_tx_history methods. To get the transaction history for ZHTLC coins, you need to use the z_coin_tx_history method.
To enable Z coins you also need to install some Zcash Params
Parameter | Type | Required | Description |
---|---|---|---|
ticker | string | ✓ | Ticker of coin to activate |
activation_params | object | ✓ | A standard ActivationRpcData object. |
Parameter | Type | Description |
---|---|---|
task_id | integer | An identifying number which is used to query task status. |
task::enable_z_coin::init
{
"userpass": "RPC_UserP@SSW0RD",
"method": "task::enable_z_coin::init",
"mmrpc": "2.0",
"params": {
"ticker": "ZOMBIE",
"activation_params": {
"mode": {
"rpc": "Light",
"rpc_data": {
"electrum_servers": [
{
"url": "zombie.dragonhound.info:10133"
},
{
"url": "zombie.dragonhound.info:20133",
"protocol": "SSL",
"ws_url": "zombie.dragonhound.info:30059"
}
],
"light_wallet_d_servers": [
"http://zombie.dragonhound.info:1443"
]
}
},
"zcash_params_path": "/home/username/path_to/.zcash-params",
"scan_blocks_per_iteration": 100,
"scan_interval_ms": 200
}
}
}
task::enable_z_coin::init
{
"userpass": "RPC_UserP@SSW0RD",
"method": "task::enable_z_coin::init",
"mmrpc": "2.0",
"params": {
"ticker": "ZOMBIE",
"activation_params": {
"mode": {
"rpc": "Light",
"rpc_data": {
"electrum_servers": [
{
"url": "zombie.dragonhound.info:10133"
}
],
"light_wallet_d_servers": [
"http://zombie.dragonhound.info:1443"
],
"sync_params": {
"height": 2528700
}
}
},
"zcash_params_path": "/home/username/path_to/.zcash-params",
"scan_blocks_per_iteration": 100,
"scan_interval_ms": 200
}
}
}
The Z coin lightwallet client only supports blocks that are post-sapling. The sapling activation height for Z coins can be found in the coins file
task::enable_z_coin::init
{
"userpass": "RPC_UserP@SSW0RD",
"method": "task::enable_z_coin::init",
"mmrpc": "2.0",
"params": {
"ticker": "ZOMBIE",
"activation_params": {
"mode": {
"rpc": "Light",
"rpc_data": {
"electrum_servers": [
{
"url": "zombie.dragonhound.info:10133"
},
{
"url": "zombie.dragonhound.info:20133",
"protocol": "SSL",
"ws_url": "zombie.dragonhound.info:30059"
}
],
"light_wallet_d_servers": [
"http://zombie.dragonhound.info:1443"
],
"sync_params": "earliest"
}
},
"zcash_params_path": "/home/username/path_to/.zcash-params",
"scan_blocks_per_iteration": 100,
"scan_interval_ms": 200
}
}
}
task::enable_z_coin::init
{
"userpass": "RPC_UserP@SSW0RD",
"method": "task::enable_z_coin::init",
"mmrpc": "2.0",
"params": {
"ticker": "ZOMBIE",
"activation_params": {
"mode": {
"rpc": "Light",
"rpc_data": {
"electrum_servers": [
{
"protocol": "SSL",
"url": "zombie.dragonhound.info:20133",
"ws_url": "zombie.dragonhound.info:30059"
}
],
"light_wallet_d_servers": [
"http://zombie.dragonhound.info:1443"
],
"sync_params": {
"date": 1672704000
}
}
}
}
}
}