Developing a Java IC client using HTTP interface spec

Hello community.

I have being reading the IC interface specification at The Internet Computer Interface Specification :: Internet Computer

Currently I am doing some experiments on my free time for developing a simple java client using the HTTP interface.

My plan is to build a java library that could be used in java code outside the IC to perform, calls, queries, status requests, etc, on canisters on the IC (using the http interface)

After playing around for a while, I am still unable to talk to the local development instance on port 8000 to request paths like the ones described on The Internet Computer Interface Specification :: Internet Computer

However, I am already sucessfully talking to https://ic0.app, at endpoint /api/v2/status and retrieving+decoding the cbor-encoded data returned.

  • Does the local development dfx has the http interface described in the spec?
  • Anyone else doing something like this?
  • Can a more IC-experienced developer point me in the right directions for this kind of project development?

Thank you

2 Likes
  • Does the local development dfx has the http interface described in the spec?

As long as you are using a sufficiently new version of dfx, then yes the local replica and dfx + libraries are compatible with the http interface described in the spec (specifically version 0.17.0)
To be sure, I recommend you use the latest version released yesterday: 0.7.0 (stripped off the beta tags.)

1 Like

There’s already something here: GitHub - seniorjoinu/candid-kt: Lets you write Kotlin apps which interact with the Internet Computer

Gonna make it up to date in near future.

Thank you! Will check that

Yes, that was my first option. Thanks

Great :slight_smile: I am sure it will be appreciated

Confirmed!
It works using DFX_VERSION=0.7.0 on ubuntu 20.04

3 Likes