Diferencia entre revisiones de «Minado Web:Minado Javascript:index»
Línea 15: | Línea 15: | ||
==== CoinHive.Token(siteKey, targetHashes [, options]) ==== | ==== CoinHive.Token(siteKey, targetHashes [, options]) ==== | ||
− | == Metodos de Instancia == | + | === Metodos de Instancia === |
− | = .start([mode]) = | + | ==== .start([mode]) ==== |
− | = .stop() = | + | ==== .stop() ==== |
− | = .isRunning() = | + | ==== .isRunning() ==== |
− | = .isMobile() = | + | ==== .isMobile() ==== |
− | = .didOptOut(seconds) = | + | ==== .didOptOut(seconds) ==== |
− | = .on(event, callback) = | + | ==== .on(event, callback) ==== |
− | = .hasWASMSupport() = | + | ==== .hasWASMSupport() ==== |
− | = .getNumThreads() = | + | ==== .getNumThreads() ==== |
− | = .setNumThreads(numThreads) = | + | ==== .setNumThreads(numThreads) ==== |
− | = .getThrottle() = | + | ==== .getThrottle() ==== |
− | = .setThrottle(throttle) = | + | ==== .setThrottle(throttle) ==== |
− | = .getToken() = | + | ==== .getToken() ==== |
− | = .getHashesPerSecond() = | + | ==== .getHashesPerSecond() ==== |
− | = .getTotalHashes([interpolate]) = | + | ==== .getTotalHashes([interpolate]) ==== |
− | = .getAcceptedHashes() = | + | ==== .getAcceptedHashes() ==== |
Revisión del 18:00 7 mar 2018
Contenido
- 1 Minado JavaScript
- 1.1 API JavasScript
- 1.2 Referencias de la API
- 1.2.1 Contructorers
- 1.2.2 Metodos de Instancia
- 1.2.2.1 .start([mode])
- 1.2.2.2 .stop()
- 1.2.2.3 .isRunning()
- 1.2.2.4 .isMobile()
- 1.2.2.5 .didOptOut(seconds)
- 1.2.2.6 .on(event, callback)
- 1.2.2.7 .hasWASMSupport()
- 1.2.2.8 .getNumThreads()
- 1.2.2.9 .setNumThreads(numThreads)
- 1.2.2.10 .getThrottle()
- 1.2.2.11 .setThrottle(throttle)
- 1.2.2.12 .getToken()
- 1.2.2.13 .getHashesPerSecond()
- 1.2.2.14 .getTotalHashes([interpolate])
- 1.2.2.15 .getAcceptedHashes()
Minado JavaScript
El Minado mediante Javascript de LightOfMining te da la opción de Minar cualquier moneda que utilice el algoritmo Cryptonight. Todos los ejemplos los usaremos con Monero y Bytecoin, unas de las monedas más utilizadas de este algoritmo. El Minador no vine con ninguna Interface de Usuario, es tu responsabilidad comunicar al usuario que vas a usar su proceso para minar hashes.