Fix for Steem.NET to work with new RPC nodessteemCreated with Sketch.

in #utopian-io7 years ago

I know .NET isn't new or cool and most don't use it around here, but it's still a heavily used development environment throughout the world (and the one I personally have the most experience with) so I think it's good to have a working Steem SDK for it.

I have been working on a .NET project recently that I wanted to integrate with Steem so I tried the Steem.NET project created by @arcange but it hasn't been updated in almost a year and I ran into a few problems.

The first was that it couldn't connect to the newer RPC nodes like https://api.steemit.com because it wasn't using the right SSL SecurityProtocol and it was formatting the URL incorrectly:

steemnet1.JPG

Once that was resolved I was getting serialization errors when making Steem API calls. Not sure if the response format changed since the project was last updated but luckily it was easy to fix by serializing to a JToken instead of JObject or JArray:

steemnet2.JPG

Lastly, I changed the classes to be public so that they could be included in a class library project that other projects could use and reference rather than having to include the Steem.NET source files directly in any projects that needed to use them.

You can see the PR here: https://github.com/VIM-Arcange/Steem.NET/pull/2

Also it's been a bit and @arcange has not accepted or commented on the request, so I suspect that he no longer works on the project. If you want to use these changes you can get my fork of the project at: https://github.com/MattyIce/steem.net



Open Source Contribution posted via Utopian.io

Sort:  

Good job =)

Approved in Utopian. Thanks @yabapmatt

[utopian-moderator]

Hey @yabapmatt I am @utopian-io. I have just super-voted you at 17% Power!

Suggestions https://utopian.io/rules

  • Your contribution is less informative than others in this category.

Achievements

  • I am a bot...I love developers... <3
  • You have less than 500 followers. Just gave you a gift ;)
  • Seems like you contribute quite often. AMAZING!
    Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63287.47
ETH 2569.39
USDT 1.00
SBD 2.81