Code Monkey home page Code Monkey logo

convex-java's Introduction

convex-java

Java client library for Convex

About

Convex is an open, decentralised technology for the Internet of Value. Java is one of the world's leading programming languages, especially in the realm of business and finance.

convex-java provides everything Java developers need to access Convex and utilise all of its capabilities from their own applications.

Usage

You will need a connection to a peer on the Convex Network. Peers are servers which participate in the maintaining consensus on the Convex Network, by executing the CPoS consensus algorithm and validating transactions. It is easiest if you simply use the free public peer available at https://convex.world.

Convex convex = Convex.connect("https://convex.world");

To utilise the network, you will need an account with available funds. On the Test Network, you can obtain one by requesting a new account with free balance (up to 10,000,000 Convex copper coins). This should be enough for most simple testing.

convex.useNewAccount(10000000);

convex-java will automatically generate a new cryptographic key pair to secure your new account. Having a valid key pair for the account is the only way to successfully submit transactions for that Account on the Convex Network. If you want to access the key pair, you can use:

convex.getKeyPair()

Installation and Configuration

You can clone this repository and run mvn install to get a working local version. This is recommended for developers who wish to use early snapshot versions or contribute to convex-java as an open source project.

convex-java is also available as a Maven dependency.

<dependency>
	<groupId>world.convex</groupId>
	<artifactId>convex-java</artifactId>
	<version>0.0.1</version>
</dependency>

License

Copyright 2021 The Convex Foundation

convex-java is licensed under the Apache License v2.0.

Some dependencies from The Convex Foundation are licensed under the Convex Public License, which is an open source license that is free to use for any applications using the Convex Network.

convex-java's People

Contributors

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