Skip to content

Instantly share code, notes, and snippets.

@vlzhr
Created February 10, 2020 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlzhr/4c2015f1c614b656826a3622d786c084 to your computer and use it in GitHub Desktop.
Save vlzhr/4c2015f1c614b656826a3622d786c084 to your computer and use it in GitHub Desktop.
Waves Keeper example
WavesKeeper.signAndPublishTransaction({
type: 12,
data: {
data: [
{ key: "string", value: "testVdfgdgf dfgdfgdfg dfg dfg al", type: "string" },
{ key: "binary", value: "base64:AbCdAbCdAbCdAbCdAbCdAbCdAbCdAbCdAbCdAbCdAbCd", type: "binary" },
{ key: "integer", value: 20, type: "integer" },
{ key: "boolean", value: false, type: "boolean" },
],
fee: {
"tokens": "0.01",
"assetId": "WAVES"
}
}
}).then((tx) => {
console.log("Hurray! I've saved data!!!");
}).catch((error) => {
console.error("Something went wrong", error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment