Coder Social home page Coder Social logo

resistor420 / csharp-monero-rpc-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from monero-ecosystem/csharp-monero-rpc-client

0.0 1.0 0.0 5.05 MB

A wallet and daemon client to interface with Monero's JSON-RPC API, built on .netstandard2.1.

License: MIT License

C# 100.00%

csharp-monero-rpc-client's Introduction

                                              License Contributions welcome NuGet Badge

This is the source code of a Monero JSON-RPC client (for both daemon and wallet) built on .netstandard2.1.

Basic Overview

Both a daemon client and wallet client are available. The daemon client interacts with monerod.exe, and the wallet client interacts with monero-wallet-rpc.exe

MoneroDaemonClient

Initialize Client

using Monero.Client.Daemon;
var daemonClient = await MoneroDaemonClient.CreateAsync("127.0.0.1",18081);

Get Connections

List<Connection> connections = await daemonClient.GetConnectionsAsync();

For the entire MoneroDaemonClient interface, please click here.

MoneroWalletClient

Initialize Client

using Monero.Client.Network;
using Monero.Client.Wallet;
using Monero.Client.Wallet.POD;

// Asynchronously Initialize Client (and Open Wallet)
var walletClient = await MoneroWalletClient.CreateAsync(MoneroNetwork.Mainnet, "TestMainnet", "123");

Transfer Funds

var dA = new List<(string address, ulong amount)>() 
{ 
	("BfukYd1Dv5YDgkZDhffjmHb1SfzT7Wr1HNTYkyxEmfnXiGepCHgPiaWicRCLHpM2moVNWAxNEVKogU2w58fT", 1000ul),
	("SomeOtherMoneroAddress", 3233100ul),
};
var response = await moneroWalletClient.TransferAsync(dA, TransferPriority.Normal);

For the entire MoneroWalletClient interface, please click here. Note: Unlike the Daemon Client, to perform any action with the Wallet Client, one must first either create a new wallet, or open an existing one (as shown above).

Latest Stable Release

Available on Nuget here.

Install-Package Monero.Client -Version 1.0.1.7

Latest Development Changes

git clone https://github.com/monero-ecosystem/csharp-monero-rpc-client.git

Contributing

All contributions are welcome. Please make sure your pull request include:

  • A detailed description of the issue.
  • A detailed description of your solution.
  • Make sure your commit messages are descriptive.

Donation

If you found this library helpful, donations are appreciated. 89CkXKw3MQLXAinJz2eb8ohmGdDasGxun65ArenNuqXFfDSVbhiqpte4E2PQaxT4yPbsNSXkT4hR2QMFYQneZfBoCX19Wx2

csharp-monero-rpc-client's People

Contributors

agorist-action avatar rbrunner7 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.