Getting Started

First, add jitpack to your root gradle file at the end of repositories:

allprojects {
    repositories {
    ...
        maven { url 'https://jitpack.io'}
    }
}

Adding Binance Smart Chain SDK as a Maven Dependency

For “Maven” add this dependency to your module:

<dependency>
        <groupId>com.github.centerprime</groupId>
        <artifactId>Binance-Chain-Client-SDK</artifactId>
        <version>1.0.9</version>
</dependency>

For “Gradle” add this dependency to your module:

dependencies {
    implementation 'com.github.centerprime:Binance-Chain-Client-SDK:1.0.9'
}

Basic Usage

Once you have the dependencies set up you can start using CenterPrime by creating a Binance Smart Chain Wallet:

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        BinanceManager binanceManager = BinanceManager.getInstance();

        binanceManager.createWallet("{{wallet_password}}", this)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(wallet -> {
                    String walletAddress = wallet.getAddress();
                    String keystore = wallet.getKeystore();
                }, error -> {
                    System.out.println(error);
                });
    }
}

Congratulations! Now you are a CenterPrime user.