NEM API path for sending NEM transaction


#1

What is the NEM API path for sending NEM transaction? like http://localhost:7890/transaction/…?
Need help plz… :slight_smile:


#2

Hi graturi,

the way to initiate a transaction in described on page 37 of the NIS API documentation (Chapter 6.1 Initiating a transaction).
The API path is http://localhost:7890/transaction/prepare-announce. It is a POST request and you have to supply a requestPrepareAnnounce JSON object which is described in the Appendix A of the documentation.
Please feel free to ask other questions if you have problems :slight_smile:

Bloody Rookie


#3

yes i did it with PHP,Json post request but {"status":"{"timeStamp":14294068,"error":"Internal Server Error","message":"net.minidev.json.JSONObject cannot be cast to java.lang.String","status":500}\r\n"} error occured here any solution plz ???


#4

yes i did it with PHP,Json post request but {"status":"{\"timeStamp\":14294068,\"error\":\"Internal Server Error\",\"message\":\"net.minidev.json.JSONObject cannot be cast to java.lang.String\",\"status\":500}\r\n"} error occured here any solution plz ???


could you show us your php code ?

#5

I am currently struggeling a bit with the "/transaction/prepare" API call used by nickel, as it seems to be undocumented.
What exactly does it do?

Edit:
Having fixed another bug, I now do see what it does: On success it returns a pair (True, {'data' : hexstring}), where hexstring is the hexlified bytearray to be signed and passed on to /transfer/announce.
Quite useful, but why is it undocumented? Or did I just miss it in the API docs?


#6

I think the nickel stuff is for hackers :smiley:
Maybe gimre will document it one day.


#7

Is it documented now where I can see that stuff?


#8

Nope, no documentation.