{ "HIGHLIGHTSTROKECOLORS": [ [ "external", "#000000" ] ], "ARGPLUGINS": [ [ "bitcoinrate", "var block = logo.blocks.blockList[blk];var conns = block.connections;var from = logo.parseArg(logo, turtle, conns[1]);var amount = logo.parseArg(logo, turtle, conns[2]);var apiURL = 'https://community-bitcointy.p.mashape.com/convert/' + amount + '/' + from;if (block.cacheFor === apiURL && block.cache !== undefined) { var response = block.cache;} else { try { var request = new XMLHttpRequest(); request.open('GET', apiURL, false); request.setRequestHeader('X-Mashape-Authorization', bitcoinMashapeKey); request.send(null); var response = request.responseText; block.cacheFor = apiURL; block.cache = response; } catch (e) { logo.errorMsg('Could not connect to Currency API', blk); }}console.log(response);obj = JSON.parse(response);block.value = obj['value'] / 100;" ] ], "GLOBALS": "bitcoinMashapeKey = 'PCwj8N1ftxmsh4WCJmQoJqiNhRCbp1DTsnTjsnkmyDCNwB94sm';", "PALETTEHIGHLIGHTCOLORS": [ [ "external", "#9DC4FF" ] ], "PALETTEPLUGINS": [ [ "external", "" ] ], "BLOCKPLUGINS": [ [ "bitcoinrate", "var bitcoinRate = new ProtoBlock('bitcoinrate');bitcoinRate.palette = palettes.dict['external'];blocks.protoBlockDict['bitcoinrate'] = bitcoinRate;bitcoinRate.staticLabels.push(_('bitcoin'), _('from'), _('value'));bitcoinRate.adjustWidthToLabel();bitcoinRate.twoArgMathBlock();bitcoinRate.dockTypes[1] = 'anyin';bitcoinRate.dockTypes[2] = 'numberin';bitcoinRate.defaults.push('USD', 100);" ] ], "PALETTEFILLCOLORS": [ [ "external", "#59f" ] ], "PALETTESTROKECOLORS": [ [ "external", "#3771c8" ] ] }