qtumproject / qtum-android

GNU General Public License v3.0
28 stars 51 forks source link

About
Combining a modified Bitcoin Core infrastructure with an intercompatible version of the Ethereum Virtual Machine (EVM), Qtum merges the reliability of Bitcoin’s unfailing blockchain with the endless possibilities provided by smart contracts. Designed with stability, modularity and interoperability in mind, Qtum is the foremost toolkit for building trusted decentralized applications, suited for real-world, business oriented use cases. Its hybrid nature, in combination with a first-of-its-kind PoS consensus protocol, allow Qtum applications to be compatible with major blockchain ecosystems, while providing native support for mobile devices and IoT appliances.

Getting Started
1)Clone project
2)Open with Android Studio

Configurations
The project has two configurations: default and local.

Default configuration contains mainnet parameters.

If you want to define your network settings, then you
1)Build project (gradle creates local.properties configuration file)
2)Edit local.properties configuration file.

Setting Custom Network Parameters

package org.qtum.wallet.utils.CurrentNetParams

    public static NetworkParameters getNetParams() {
        return QtumMainNetParams.get(); // or QtumTestNetParams.get();
    }

    public static String getUrl() {
        return "http://127.0.0.1:5555/";
    }

Change return value in getUrl() method like this

Gradle version

com.android.tools.build:gradle:2.3.3

Minimal Android SDK Version

19

Build Tools version

25.0.3

Technologies

Third Party Libraries (gradle)

Android Fork BitcoinJ
The android fork bitcoinj library is a Java implementation of the Bitcoin protocol, which allows it to maintain a QTUM wallet and send/receive transactions without needing a local copy of Bitcoin Core. It comes with full documentation and some example apps showing how to use it
Link: https://github.com/bitcoinj/bitcoinj

BitcoinJ Technologies