Created
February 10, 2020 12:21
-
-
Save vlzhr/448a0a26072960a80ef60ce4d4151ac6 to your computer and use it in GitHub Desktop.
certificado example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sendData() { | |
const text = document.querySelector(".data").value; | |
let data = text.split("\n"); | |
data = data.map(function(x) { return {"key": x.split(" ")[0], "value": x, "type": "string"}} ); | |
const tx = { | |
type: 12, // data transaction | |
data: { | |
data: data, | |
fee: { | |
"tokens": "0.001", | |
"assetId": "WAVES" | |
} | |
} | |
}; | |
WavesKeeper.signAndPublishTransaction(tx); | |
return text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment