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
Lets test some stuff | |
Hey @GotCrabs please send @lukeheath 1000 satoshis |
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
let _ = require('lodash'); | |
let BITBOXCli = require('bitbox-cli/lib/bitbox-cli').default; | |
let BITBOX = new BITBOXCli({ | |
protocol: 'http', | |
host: '138.68.54.100', | |
port: '8332', | |
username: 'bitcoin', | |
password: 'xhFjluMJMyOXcYvF' |
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
// https://blockdozer.com/api/addrs/bitcoincash:qqv7auka06kndxt6ymm8keuw0d0aj80lwcj7l29k42/utxo/ | |
// Index of 80fc5d19ebfc1803d5b950bbb2dc9694cc6fec40d0319dd17de5182195f926c8 = 2 | |
{ address: '13N89F2wuJCuaki88uH7gf1fzkRh4RFqrE', | |
txid: '80fc5d19ebfc1803d5b950bbb2dc9694cc6fec40d0319dd17de5182195f926c8', | |
vout: 2, | |
amount: 0.00014874, | |
satoshis: 14874, | |
height: -1, | |
confirmations: 0, |
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
let axios = require('axios'); | |
let util = require('util'); | |
let utxosPlease = ['bitcoincash:qqhstfz5k4hm3h84harmkdasn2g22p6rts60d5knqn']; | |
let sourceUrl = 'https://beta.blockdozer.com/api/addrs/'+utxosPlease.join(',')+'/utxo/'; | |
let fetchUtxos = async (arrayOfCashAddresses) => { |
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
{ | |
"txid": "ceed01e890335ca9713e744b23239248d7ff595b8bd19071a39cfd28be768101", | |
"hash": "ceed01e890335ca9713e744b23239248d7ff595b8bd19071a39cfd28be768101", | |
"size": 928, | |
"version": 2, | |
"locktime": 0, | |
"vin": [ | |
{ | |
"txid": "ecc3d123d4183256da1b61d45082a91ed91613a3e3ca0c6ecfbc3e3f06d1e38f", | |
"vout": 1, |
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
let signingECpair; | |
let paperWalletFromAddress; | |
// If we're sweeping from a paper wallet, turn your WIF into a signing pair. | |
if (options.sweepPaperWalletFor) { | |
try { | |
signingECpair = BITBOX.ECPair.fromWIF(options.privatekey); |
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
// Async-await compatible timeout function | |
let delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
let _ = require('lodash'); | |
let BITBOXCli = require('bitbox-cli/lib/bitbox-cli').default; | |
let BITBOX = new BITBOXCli({ | |
protocol: 'http', | |
host: '138.68.54.100', | |
port: '8332' |
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<button onclick="send();" size=10>Send Many Txs in sequence</button><br> | |
</body> |
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
// Setup Bitbox | |
let BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk').default; | |
let BITBOX = new BITBOXSDK(); | |
let someBchAddress = 'bitcoincash:qrdf9w034w9l7lgu7yt2tem7403paeky2geytpuccn'; | |
// This is a self executing function that allows us to run | |
// code without defining a function then later calling it. | |
// Ignore this part and skip to the guts. | |
(async function() { |
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
<!-- Fetch the library from the server --> | |
<script src="https://tipscash.herokuapp.com/libs/telescope/tips.cash.js"></script> | |
<script language="javascript"> | |
// Setup all your event listeners | |
io.socket.on('account', function(account) { | |
console.log('account!', account); |
OlderNewer