Updated web-daemon commands for 0.30.0

This commit is contained in:
ポール ウェッブ 2018-11-21 11:53:17 -06:00
parent 434126041d
commit f49607e7b1
2 changed files with 6 additions and 6 deletions

View file

@ -190,7 +190,7 @@ curl --header <span class="token string">"Content-Type: application/json"</span>
send(JSON.stringify({
claim: data,
message: "fetch metadata",
method: "wallet_send",
method: "claim_tip",
example: exampleNumber
}));
@ -199,7 +199,7 @@ curl --header <span class="token string">"Content-Type: application/json"</span>
document.getElementById("playground-results").innerHTML = `
<pre><code class="language-bash">
<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>
<div class="loader" id="temp-loader"></div>

View file

@ -35,7 +35,7 @@ module.exports = exports = (data, socket) => {
const allowedMethods = [
"publish",
"resolve",
"wallet_send"
"claim_tip"
];
const body = {};
@ -59,7 +59,7 @@ module.exports = exports = (data, socket) => {
// Required for publishing
body.author = "lbry.tech";
body.bid = 0.0001; // Hardcoded publish amount
body.bid = "0.001"; // Hardcoded publish amount
body.description = dataDetails.description;
body.language = dataDetails.language;
body.license = dataDetails.license;
@ -154,7 +154,7 @@ module.exports = exports = (data, socket) => {
body.uri = claimAddress;
}
if (resolveMethod === "wallet_send") {
if (resolveMethod === "claim_tip") {
const approvedIds = [
"3db81c073f82fd1bb670c65f526faea3b8546720",
"173412f5b1b7aa63a752e8832406aafd9f1ecb4e",
@ -182,7 +182,7 @@ module.exports = exports = (data, socket) => {
apiRequestMethod = "POST";
body.amount = "0.01"; // Hardcoded tip amount
body.amount = "0.001"; // Hardcoded tip amount
body.claim_id = claimAddress;
}