Funding websites with Nimiq
See the Demo or see it in action on my blog
Nimiq Funder is built using Vue and vue-cli.
- Node
- Yarn
npm install -g yarn
$ yarn install
$ yarn serve
$ yarn build
# or the umd build
$ vue-cli-service build --target lib --name nimiq-funder ./src/main.js
Nimiq Funder is designed to work with mining pools, and is configured by default to connect to the nimiq.watch pool. The funding address along with the pool configuration may applied appropriately. Download the zip release, extract and take a look at demo.html as an example.
<!DOCTYPE html>
<html>
<head>
<title>nimiq-funder demo</title>
<link rel="stylesheet" href="./nimiq-funder.css">
</head>
<body>
<!-- element the Vue instance mounts to -->
<div id="nimiq-funder"></div>
<!-- load in Vue dependency -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
<!-- load in nimiq cdn link -->
<script src="https://cdn.nimiq.com/nimiq.js"></script>
<script>
// config - comment out and define your funding address and pool configuration if desired
// var NIMIQ_ADDRESS = 'NQ42 2X..';
// var NIMIQ_POOL_HOST = 'pool.nimiq.watch';
// var NIMIQ_POOL_PORT = 8443;
</script>
<script src="./nimiq-funder.umd.js"></script>
</body>
</html>
Like this Project? Donate some NIM to NQ42 2XFM G9U0 8MSC 7T2H UTUV A9D6 RG13 P1RV