Skip to content

Instantly share code, notes, and snippets.

@asapostolov
Created February 15, 2022 11:02
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 asapostolov/8659dd8f5c09cca91d15f26405237bf8 to your computer and use it in GitHub Desktop.
Save asapostolov/8659dd8f5c09cca91d15f26405237bf8 to your computer and use it in GitHub Desktop.
Create SEEDS Payment QR
import request from 'sync-request';
var res = request("POST", `https://api-esr.hypha.earth/qr`, {
headers: {
"user-agent": "bot-user-agent"
},
json: {
"actions": [
{
"account": "token.seeds",
"name": "transfer",
"authorization": [
{
"actor": "............1",
"permission": "active"
}
],
"data": {
"from": "............1",
"to": "apostolseeds",
"quantity":"25.0000 SEEDS",
"memo":"test QR order #223344"
}
}
]
}
});
res = JSON.parse(res.getBody("utf8"));
console.log(res);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment