JS Client Service access #3143
-
I've set up a simple single node open network with 1 active member and I'm now trying to setup a client. I've already successfully made a python client following the documentation and can make http requests over TLS. I will be working with AngularJS in the near future and was wondering if ccf also had a Javascript package to make signed/user/anonymous requests and if not, how I could achieve this in JS? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hi @mAlyanak. No, we don't have any clients written in JS. We think it should be possible to write clients in any language, since they're speaking a standard protocol - HTTP over TLS - with common library support. We've successfully communicated with CCF nodes from a variety of existing tools (curl, k6, vegeta, artillery), and written clients in several languages (C++, Python, C#), so JS should be easy too. The only tricky case is submitting signed requests, which must be compatible with a specific version of the draft RFC. There are libraries that do this in many languages (including JS), but checking they implement the same spec version may not be trivial. |
Beta Was this translation helpful? Give feedback.
Hi @mAlyanak. No, we don't have any clients written in JS. We think it should be possible to write clients in any language, since they're speaking a standard protocol - HTTP over TLS - with common library support. We've successfully communicated with CCF nodes from a variety of existing tools (curl, k6, vegeta, artillery), and written clients in several languages (C++, Python, C#), so JS should be easy too.
The only tricky case is submitting signed requests, which must be compatible with a specific version of the draft RFC. There are libraries that do this in many languages (including JS), but checking they implement the same spec version may not be trivial.