-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
91 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
You can filter this transaction with the following bitquery: | ||
{ | ||
"v": 3, | ||
"q": { | ||
"find": { | ||
"out.b0": { "op": 106 }, | ||
"out.b1": { "op": 0 } | ||
} | ||
} | ||
} | ||
*/ | ||
var axios = require('axios') | ||
const host = "https://pipe.bitdb.network" | ||
var datapay = require('datapay') | ||
axios.post(host + "/bitpipe", { | ||
data: [ "", "Hello from Bitpipe"] | ||
}) | ||
.then(function(response) { | ||
console.log("response = ", response) | ||
}) | ||
.catch(function(e) { | ||
console.log("Error = ", e) | ||
}) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// post multiple consecutive messages | ||
var axios = require('axios') | ||
const host = "https://pipe.bitdb.network" | ||
var datapay = require('datapay') | ||
var seed = "#"; | ||
var run = async function(space) { | ||
return axios.post(host + "/bitpipe", { | ||
data: [ "", space + seed ] | ||
}) | ||
}; | ||
(async function() { | ||
for(i=0; i < 30; i++) { | ||
let space = "#".repeat(i) | ||
let response = await run(space).catch(function(e) { | ||
console.log("Error", e) | ||
}) | ||
await new Promise(done => setTimeout(done, 2000)); | ||
console.log("response = ", response.data) | ||
} | ||
})(); |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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