BURST API
-
@luxe well i can do that but then again i have to every of those to scan if we got to end if not repeat (the more repeated api calls the bigger chance for something to go horribly wrong) :)
-
@LithStud Well, just try to help ... as long as you do not implement it yourself, api will not change any time soon i guess :-)
-
@luxe sigh :D at least give a stern look and maybe some verbal select words to the one who removed it in the first place ;) (and since its a webpage all calls gonna go to the online wallet :P )
-
@LithStud The API of online wallet can be disabled at some point, if it has too much load. So better do not rely on that. But sure a php webhosting can not run a own wallet.
-
@luxe exactly :) i do plan to get my own rented server space where i can install whatever i desire but thats in future once i start optimizing and spreading out my project :)
-
Just as a note to anyone else looking for the API docs, the nxtcrypto.org mentioned above seems to be gone. I found the docs at https://nxtwiki.org/wiki/The_Nxt_API.
-
https://nxtwiki.org/wiki/The_Nxt_API_Examples#Send_Money
how does this work if your site is hosted? you have to know IP of your wallet?
i plan a site where i used shared hosting, how or where do i send the http Post?
http://localhost:7876/nxt?
requestType=sendMoney&
secretPhrase=IWontTellYou&
recipient=NXT-4VNQ-RWZC-4WWQ-GVM8S&
amountNQT=100000000&
feeNQT=100000000&
deadline=60
-
@falconCoin If your wallet isn't on the same machine that you're making the request from, you would need to configure your wallet settings to allow API connections from other hosts (if possible, you should configure it only to allow connections from the host you'll be making requests from, for security). You'll also need to configure it to listen on network interfaces other than localhost.
If you look in the conf/ subdirectory of the wallet source, you'll find a file called nxt-default.properties. You can override variables in that file by creating another file called nxt.properties and putting your configurations in there. I think the relevant variables are nxt.allowedBotHosts and nxt.apiServerHost.
Also, you want to use the URL http://<hostname>:8125/burst, and not port 7876/nxt.
Those are my learnings from playing with some API calls over the weekend, anyway. :) Other devs probably know more.
-
@zyzzyva wow they did not make it easy did they! lol PM if you can with some details please
-
@falconCoin or you make your own api that would run on same localhost as wallet :) tho you would still need to make sure it has access to wallet :D
-
@LithStud thanks again... doesnt seem like an easy task compared to some other api's
-
@falconCoin i wouldnt say its that much harder than others :) you still need somewhere to configure who can access the api.