Skip to content

Commit

Permalink
chore: add messages to keysend examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Feb 5, 2024
1 parent 758d303 commit fa09132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/nwc/keysend.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const response = await webln.keysend({
"030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3",
customRecords: {
696969: "017rsl75kNnSke4mMHYE", // hello@getalby.com
34349334: "example keysend message",
},
});

Expand Down
4 changes: 3 additions & 1 deletion examples/nwc/multi-keysend.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const keysends = [
amount: 1,
customRecords: {
696969: "017rsl75kNnSke4mMHYE", // hello@getalby.com
34349334: "First keysend",
},
},
{
Expand All @@ -34,13 +35,14 @@ const keysends = [
amount: 1,
customRecords: {
696969: "1KOZHzhLs2U7JIx3BmEY", // another Alby account
34349334: "second keysend",
},
},
];

try {
const response = await webln.multiKeysend(keysends);
console.info(response);
console.info(JSON.stringify(response));
} catch (error) {
console.error("multiKeysend failed", error);
}
Expand Down

0 comments on commit fa09132

Please sign in to comment.