For all you recipe writers, here's a tip.
Some coins we do not have Electrum(X) servers for, so we cannot import engine.electrum-tcp for easy recipe implementation.
Instead you can now try to find a block explorer based on the Insight codebase. If a coin has that, you can import engine.insight in your recipe instead.
Next to that, sometimes an Insight API is hiding in plain sight. For example, check out these two block explorers.
https://bitcoincash.blockexplorer.com/apihttps://bch.blockdozer.com/Look very different right? Don't be fooled by the looks of these two. They are both based on the open source Insight block explorer, so they can be used together to load balance eachother (in this case for Bitcoin Cash).
Resulting recipe:
{
"symbol":"bch",
"name":"Bitcoin Cash",
"module":"quartz",
"mode":"bitcoin_cash",
"factor":8,
"fee":0.00001,
"host": ["https://bch.blockdozer.com/api","https://bitcoincash.blockexplorer.com/api"],
"cache":60000,
"throttle":1,
"import":"insight",
"quartz":{
"validate" : [
"data '$1'",
"regx '^bitcoincash:|1' @success @fail",
"@success",
"done 'valid'",
"@fail",
"done 'invalid'"
]
}
}
Short and sweet. Thanks goes to @marco_ for the deterministic work, and more. After thorough testing we'll put it live, and have BCH back in the wallet.