RPC Client Libraries [Community Bounty]

To test any RPC client you can use http://seed01.nimiq.ovh:8648/ as a RPC server its a fullnode running on Mainnet with basic auth enabled.

Credentials:
username: superadmin
password: superman23

3 Likes

What a nice gesture, thanks a ton! Any chance for one on the testnet as well?

I have updated the Go library. Special thanks to @terorie for his constructive feedback, and thanks to @Maestro for providing a test node.

Changes include:

  • Support for username / password authentication
  • Support for batch RPC requests
  • A bunch of fixes and improvements

Full list of changes can be found here: https://github.com/redmaner/go-nimiq-rpc/releases/tag/v1.1.0
Updated documentation can be found here: https://godoc.org/github.com/redmaner/go-nimiq-rpc

3 Likes

Hi Tomkha, please send your Java implementation as a PR to https://github.com/nimiq-community/java-client

This way we can do the review as part of the PR and keep the process documented and transparent. :slight_smile:

Similarily, the Go code should go here: https://github.com/nimiq-community/go-client

@terorie told me he has been working on the code and talking with you. AFAIK, the idea was that he’ll push the final code. Maybe just make sure with him.

Great to see the big progress on Rust!! @jgraef was looking at it, you most likely talked already. I just created a repo for the Rust client:

Please send a PR.

2 Likes

I’ll compose a PR starting from next week :+1:

1 Like

@terorie just merged your code! :rocket:

The Nimiq Go RPC client v1 is now available at https://github.com/nimiq-community/go-client ! :muscle:

I’ll DM you to arrange for the bounty!

2 Likes

Completed! The PR has been merged, thank you for the great contribution!

Also, I added you as maintainer and Pascal as admin to make it easier to work on it in the future. (Same for the Go client @redmaner :slight_smile: )

Please contact me DM so that the well-earned NIM can find their way towards you. :blush:

2 Likes

Hi there,

PHP Client incoming this weekend. Could you please create the repo in nimiq-community ?

4 Likes

Will do @mario. @svub will post it here as soon as it’s created

1 Like

@Richy I’m ready to go: https://github.com/lunanimous/nimiq-php-rpc-client

I also updated the missing JSON RPC specs methods, I hope you don’t mind: https://github.com/nimiq/core-js/wiki/JSON-RPC-API

1 Like

Here is the repo:

Sorry for the delay, looking forward to your PR! :slight_smile:

PR raised:

1 Like

Happy to announce that the Java RPC client has been released!!

It’s a great addition and please check out the tests written for it, they will be a guide and signpost for future RPC client implementations in other languages! Go have a look!

Thanks again @tomkha for your effort!! 600’000 NIM are on their way to you.

1 Like

@mario, sorry for the delay, it’s just that the team is currently very busy. But it’s not forgotten, I’ll come back to you about the PR asap.

The PHP RPC client has arrived!!

Again a great implementation with testing and everything, really worth checking out to learn and use. Go have a look!

Thank you @mario for your effort, the 600’000 NIM reward are already on your way.

1 Like

If you find any bugs, please post issues on github.

Also, I just published to packagist so it’s installable using composer:
https://packagist.org/packages/nimiq-community/php-client