4

I'm quite new to cryptocurrencies, and I want to make a program that runs simplewallet (monero-wallet-cli) in the background as an RPC server and make calls to it using C#. I already somewhat know how to start it as an RPC server (per this bytecoin wiki link), but how would I make calls to get information like the current balance and display it on the GUI, or make a transaction?

scoobybejesus
  • 5,495
  • 18
  • 42
UsernameVF
  • 857
  • 2
  • 8
  • 24

1 Answers1

5

I think you should have a look at Monero's official Wallet RPC documentation. There's an example for each command.

Update: Those examples use the curl utility to send the HTTP request. The meaning of the parameters can be looked up in the man page.

dpzz
  • 4,539
  • 3
  • 19
  • 45
  • I understand, but what I'm confused about is how I actually call them. I see cUrl and I'm not sure how to do it in C# – UsernameVF Oct 11 '16 at 19:36
  • curl is just a UNIX utility to send an HTTP request to a certain URL. I am not into C#, but I suppose there's an API to construct an HTTP request. In order to understand the meaning of those parameters, have a look at the man page. For example, -X is for the type of HTTP request, -H is for the HTTP header to be sent along, -d is for the data to be sent. – dpzz Oct 11 '16 at 20:05
  • Thank you, I figured it out. .Net has a simple way to send HTTP requests. Much love <3 – UsernameVF Oct 11 '16 at 20:16