stellard
stellard copied to clipboard
Subscribe API call using CURL returns No Permissions error
~$ curl -X POST https://test.stellar.org:9002 -d '
> {
> "method": "subscribe",
> "params": [
> {
> "accounts": [
> "ganVp9o5emfzpwrG5QVUXqMv8AgLcdvySb",
> "gM4Fpv2QuHY4knJsQyYGKEHFGw3eMBwc1U"
> ],
> "url": "localhost:8000/callback-endpoint"
> }
> ]
> }'
{
"result" : {
"error" : "noPermission",
"error_code" : 5,
"error_message" : "You don't have permission for this command.",
"request" : {
"accounts" : [
"ganVp9o5emfzpwrG5QVUXqMv8AgLcdvySb",
"gM4Fpv2QuHY4knJsQyYGKEHFGw3eMBwc1U"
],
"command" : "subscribe",
"url" : "localhost:8000/callback-endpoint"
},
"status" : "error"
}
}
I'm getting the same error when trying it in the live.stellar.org servers
Yeah the public servers don't allow you to set a URL for them to callback to. You would have to run your own stellard to do this.