diff --git a/app/components/client/playground-scripts.js b/app/components/client/playground-scripts.js index b460778..cf9af68 100644 --- a/app/components/client/playground-scripts.js +++ b/app/components/client/playground-scripts.js @@ -190,7 +190,7 @@ curl --header "Content-Type: application/json" send(JSON.stringify({ claim: data, message: "fetch metadata", - method: "wallet_send", + method: "claim_tip", example: exampleNumber })); @@ -199,7 +199,7 @@ curl --header "Content-Type: application/json" document.getElementById("playground-results").innerHTML = `
# With the LBRY app/daemon running locally, you can use this in your Terminal
-curl --header "Content-Type: application/json" --data '{ "method": "wallet_send", "params": { "amount": "0.01", "claim_id": "${data}" }}' http://localhost:5279
+curl --header "Content-Type: application/json" --data '{ "method": "claim_tip", "params": { "amount": "0.001", "claim_id": "${data}" }}' http://localhost:5279
diff --git a/app/helpers/fetch-metadata.js b/app/helpers/fetch-metadata.js
index 84e998f..b10df2f 100644
--- a/app/helpers/fetch-metadata.js
+++ b/app/helpers/fetch-metadata.js
@@ -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;
}