This commit is contained in:
sibelly
2023-05-11 15:32:07 -04:00
parent b0c03a8a33
commit bbaf22d650
2 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
{ {
"name": "js", "name": "send-a-memo",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "send-a-memo.js", "main": "send-a-memo.js",
@@ -7,8 +7,8 @@
"start": "node send-a-memo.js" "start": "node send-a-memo.js"
}, },
"author": "", "author": "",
"license": "ISC", "license": "CC0-1.0",
"dependencies": { "dependencies": {
"xrpl": "^2.0.0" "xrpl": "^2.0.0"
} }
} }

View File

@@ -23,7 +23,7 @@ if (typeof module !== "undefined") {
// Enter memo data to insert into a transaction // Enter memo data to insert into a transaction
const MemoData = xrpl.convertStringToHex(string="Example Memo - 123 -=+"); const MemoData = xrpl.convertStringToHex(string="Example Memo - 123 -=+");
const MemoType = xrpl.convertStringToHex(string="Text"); const MemoType = xrpl.convertStringToHex(string="Text");
// MemoFormat values: # MemoFormat values: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types // MemoFormat values: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
const MemoFormat = xrpl.convertStringToHex(string="text/plain"); const MemoFormat = xrpl.convertStringToHex(string="text/plain");
// Send AccountSet transaction // Send AccountSet transaction