Updated web-daemon commands for 0.30.0
This commit is contained in:
parent
434126041d
commit
f49607e7b1
2 changed files with 6 additions and 6 deletions
|
@ -190,7 +190,7 @@ curl --header <span class="token string">"Content-Type: application/json"</span>
|
||||||
send(JSON.stringify({
|
send(JSON.stringify({
|
||||||
claim: data,
|
claim: data,
|
||||||
message: "fetch metadata",
|
message: "fetch metadata",
|
||||||
method: "wallet_send",
|
method: "claim_tip",
|
||||||
example: exampleNumber
|
example: exampleNumber
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ curl --header <span class="token string">"Content-Type: application/json"</span>
|
||||||
document.getElementById("playground-results").innerHTML = `
|
document.getElementById("playground-results").innerHTML = `
|
||||||
<pre><code class="language-bash">
|
<pre><code class="language-bash">
|
||||||
<span class="token comment"># With the LBRY app/daemon running locally, you can use this in your Terminal</span>
|
<span class="token comment"># With the LBRY app/daemon running locally, you can use this in your Terminal</span>
|
||||||
curl --header <span class="token string">"Content-Type: application/json"</span> --data <span class="token string">'{ "method": "wallet_send", "params": { "amount": "0.01", "claim_id": "${data}" }}'</span> <span class="token url">http://localhost:5279 </span>
|
curl --header <span class="token string">"Content-Type: application/json"</span> --data <span class="token string">'{ "method": "claim_tip", "params": { "amount": "0.001", "claim_id": "${data}" }}'</span> <span class="token url">http://localhost:5279 </span>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<div class="loader" id="temp-loader"></div>
|
<div class="loader" id="temp-loader"></div>
|
||||||
|
|
|
@ -35,7 +35,7 @@ module.exports = exports = (data, socket) => {
|
||||||
const allowedMethods = [
|
const allowedMethods = [
|
||||||
"publish",
|
"publish",
|
||||||
"resolve",
|
"resolve",
|
||||||
"wallet_send"
|
"claim_tip"
|
||||||
];
|
];
|
||||||
|
|
||||||
const body = {};
|
const body = {};
|
||||||
|
@ -59,7 +59,7 @@ module.exports = exports = (data, socket) => {
|
||||||
|
|
||||||
// Required for publishing
|
// Required for publishing
|
||||||
body.author = "lbry.tech";
|
body.author = "lbry.tech";
|
||||||
body.bid = 0.0001; // Hardcoded publish amount
|
body.bid = "0.001"; // Hardcoded publish amount
|
||||||
body.description = dataDetails.description;
|
body.description = dataDetails.description;
|
||||||
body.language = dataDetails.language;
|
body.language = dataDetails.language;
|
||||||
body.license = dataDetails.license;
|
body.license = dataDetails.license;
|
||||||
|
@ -154,7 +154,7 @@ module.exports = exports = (data, socket) => {
|
||||||
body.uri = claimAddress;
|
body.uri = claimAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resolveMethod === "wallet_send") {
|
if (resolveMethod === "claim_tip") {
|
||||||
const approvedIds = [
|
const approvedIds = [
|
||||||
"3db81c073f82fd1bb670c65f526faea3b8546720",
|
"3db81c073f82fd1bb670c65f526faea3b8546720",
|
||||||
"173412f5b1b7aa63a752e8832406aafd9f1ecb4e",
|
"173412f5b1b7aa63a752e8832406aafd9f1ecb4e",
|
||||||
|
@ -182,7 +182,7 @@ module.exports = exports = (data, socket) => {
|
||||||
|
|
||||||
apiRequestMethod = "POST";
|
apiRequestMethod = "POST";
|
||||||
|
|
||||||
body.amount = "0.01"; // Hardcoded tip amount
|
body.amount = "0.001"; // Hardcoded tip amount
|
||||||
body.claim_id = claimAddress;
|
body.claim_id = claimAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue