- Grab the latest bitcoin-core .tar.gz release and unpack it https://bitcoin.org/en/download
- Add the
bin
folder to your path - Start the regtest server
bitcoind -regtest
- Create a test wallet
bitcoin-cli -regtest createwallet test
- Get a bcrt address for your wallet
bitcoin-cli -regtest getnewaddress
- 'Mine' some regtest btc
bitcoin-cli generatetoaddress 10 <address-from-previous-command>
- Make sure it worked `bitcoin-cli getblockcount
I hereby claim:
- I am olistic on github.
- I am olistic (https://keybase.io/olistic) on keybase.
- I have a public key ASDBrZhQfuaSnPFG_bBqa0TTmi5aHi5gatDHbSJ01pOymgo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Particle = require('particle-api-js'); | |
const PARTICLE_ACCESS_TOKEN = process.env.PARTICLE_ACCESS_TOKEN; | |
const DEVICE_ID = '310441150a47343356565663'; | |
const particle = new Particle(); | |
class Gate { | |
getState() { | |
return particle.getVariable({ |