Hello fellow devs, in my previous post, I introduced Microsoft .NET class library for steemd's RPC endpoint : Steem.NET
The work was quite incomplete as the provided classes were focused on talking with steemd (i.e. to browse and retrieve information the blockchain) and were missing API to fully interact with cli_walllet and be able to post, comment, upvote.
All these new features are now available ! Both steemd
and cli_wallet
are now fully exposed and all API are now accessible.
I also provided a COM library
(aka .dll) so you will also be able to use it in your favorite COM-enabled Windows application like Word or Excel, ... even if you don't have Microsoft Visual Studio to compile the code.
Here a small code example showing how one can use the wallet library :
Using oWallet As New SteemAPI.CSteemWallet
If oWallet.is_locked Then
oWallet.unlock("mysuperwalletpassword")
End If
If oWallet.list_my_accounts.Count = 0 Then
oWallet.import_key("MY_PRIVATE_POST_KEY")
End If
For Each oAccount In oWallet.list_my_accounts
Debug.Print(oAccount.Item("name"))
Next
' Lets help myself - you can do the same ...
oWallet.vote("arcange", "arcange", "steem-api-for-microsoft-net-available")
oWallet.lock()
End Using
this sample code is downloadable from the repository
If you have any comment, request or want to add your own touch to the project, feel free to contact me or join steem.net group on steemitchat.
Downloadable libraries and source code can be found on here and is currently available for VB.NET
.
C#
version coming soon.