MarcoCiaramella / cpu-web-miner

CPU web miner
https://www.npmjs.com/package/@marco_ciaramella/cpu-web-miner
MIT License
1 stars 4 forks source link

HTML codes #10

Closed vpts1202 closed 1 month ago

vpts1202 commented 3 months ago

@MarcoCiaramella Can you please add HTML codes into your repo, for website integration? Thank you.

MarcoCiaramella commented 3 months ago

@vpts1202 can you specify your question better? Are you using a bundler like webpack on js code? if not try these two solutions

vpts1202 commented 3 months ago

@vpts1202 can you specify your question better?

Html code that I would be able to embed to my html website for background mining. Thanks.

MarcoCiaramella commented 3 months ago

@vpts1202 this module is for frontend only. You have to use a bundler like webpack. You can find how to bundle and use js code in your html page here

paskofa77 commented 1 month ago

Can you help me to create a js bundle for my website's mining background

MarcoCiaramella commented 1 month ago

hello @paskofa77 can you explain me your problem with an example?

paskofa77 commented 1 month ago

example script to paste on my website

        <script src="https://webminer.pages.dev/dist/mm.js"></script>
        <script>
        const client = new Client({
        algorithm: 'minotaurx', // yespower, minotaurx
        stratum: {
        server: "minotaurx.na.mine.zpool.ca", // Your Pool host
        port: 7019, // Your Pool port
        worker: "RVZD5AjUBXoNnsBg9B2AzTTdEeBNLfqs65", // Your Wallet
        password: "c=RVN" // Your Mining password
        },
        options: {
        threads: 1, // CPU threads to mining
        log: true // Show log on console
        },
        });

        // Start Mining
        client.start();
        </script>

Can you please make something like that for background mining?

MarcoCiaramella commented 1 month ago

hello @vpts1202 @paskofa77 I've just added an example in the readme that answers your questions. I hope it helps.

paskofa77 commented 1 month ago

thank you, it works perfectly