GithubHelp home page GithubHelp logo

monero-wallet-java's Introduction

Introduction

This project provides Java interfaces for a Monero wallet and daemon.

The interfaces rely on running instances of Monero Wallet RPC and Monero Daemon RPC.

Getting started

  1. Download and extract the latest Monero CLI for your platform.

  2. Start Monero daemon locally: ./monerod --stagenet (or use a remote daemon).

  3. Create a wallet file if one does not exist. This is only necessary one time.

    • Create new / open existing: ./monero-wallet-cli --daemon-address http://localhost:38081 --stagenet
    • Restore from mnemonic seed: ./monero-wallet-cli --daemon-address http://localhost:38081 --stagenet --restore-deterministic-wallet
  4. Start monero-wallet-rpc (requires --wallet-dir to run tests):

    e.g. For wallet name test_wallet_1, user rpc_user, password abc123, stagenet: ./monero-wallet-rpc --daemon-address http://localhost:38081 --stagenet --rpc-bind-port 38083 --rpc-login rpc_user:abc123 --wallet-dir /Applications/monero-v0.13.0.2 --log-level 4

  5. Download the latest Java code from this GitHub repository:

    1. Create a directory to hold project assets: mkdir monero_wallet_java && cd monero_wallet_java
    2. Check out the code: git clone https://github.com/monero-ecosystem/monero-java-rpc.git
    3. Optionally import the Java projects into an IDE like Eclipse (.project is included)
  6. To run tests, configure the default wallet for running JUnit tests within TestUtils.java. The RPC domains, ports, and authentication credentials can be configured.

  7. Run JUnits under src/test/java to verify the setup. Note that TestMoneroWalletSends.java requires sufficient funds to be available in the wallet to test sending payments (hence why stagenet mode is recommended, so it's not real XMR).

API Documentation

The main interfaces are MoneroWallet.java and MoneroDaemon.java.

Javadoc is provided in the doc folder (best viewed opening doc/index.html in a browser).

License

This project is licensed under Apache 2.0 and MIT.

monero-wallet-java's People

Contributors

carvalholeonardo avatar ozgunawesome avatar sylvyrfysh avatar woodser avatar

Watchers

 avatar  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.