7

The links below have stopped supporting

Is there a supported library that I can use?

1
  • Is it still work? Feb 14, 2022 at 8:07

2 Answers 2

3

As there are currently no supported Java client libraries listed here:

You can use Java with RPC.

Substrate exposes a number of RPC methods.

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "rpc_methods"}' https://rpc.polkadot.io
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "state_getMetadata"}' https://rpc.polkadot.io

Reference:

1
  • Thanks, but the response of the rpc call is an encoded value, so I'm worried about how to handle it in Java.
    – PaperFrog
    Feb 16, 2022 at 4:26
4

https://github.com/strategyobject/substrate-client-java is active, though incomplete.

1
  • I think it'd be good to use this as a reference later on. Thank you.
    – PaperFrog
    Feb 16, 2022 at 4:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.