Created
February 15, 2022 11:02
-
-
Save asapostolov/8659dd8f5c09cca91d15f26405237bf8 to your computer and use it in GitHub Desktop.
Create SEEDS Payment QR
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
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