Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Returns coin info from unmineable
- *
- * @param {"VET"} coin - Input coin.
- * @return {array} row with coin info.
- * @customfunction
- */
- function UNMINEABLE(coin){
- const res = UrlFetchApp.fetch(`https://api.unminable.com/v3/coins/${coin.toUpperCase()}?winfo=1`)
- const json = JSON.parse(res.getContentText())
- return [[
- json.coin.symbol,
- json.coin.name,
- json.coin.mining_fee,
- json.coin.exchange,
- json.coin.payment_info.fee,
- json.coin.payment_info.minimum,
- json.coin.payment_info.minimum_exchange,
- json.coin.payment_info.precision,
- json.reward.randomx.last_reward
- ]]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement