All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.citahub.cita.protocol.admin.Admin Maven / Gradle / Ivy

The newest version!
package com.citahub.cita.protocol.admin;

import java.math.BigInteger;

import com.citahub.cita.protocol.CITAj;
import com.citahub.cita.protocol.CITAjService;
import com.citahub.cita.protocol.admin.methods.response.NewAccountIdentifier;
import com.citahub.cita.protocol.admin.methods.response.PersonalListAccounts;
import com.citahub.cita.protocol.admin.methods.response.PersonalUnlockAccount;
import com.citahub.cita.protocol.core.Request;
import com.citahub.cita.protocol.core.methods.request.Transaction;
import com.citahub.cita.protocol.core.methods.response.AppSendTransaction;

/**
 * JSON-RPC Request object building factory for common Parity and Geth.
 */
public interface Admin extends CITAj {

    static Admin build(CITAjService citajService) {
        return new JsonRpc2_0Admin(citajService);
    }

    public Request personalListAccounts();

    public Request personalNewAccount(String password);

    public Request personalUnlockAccount(
            String address, String passphrase, BigInteger duration);

    public Request personalUnlockAccount(
            String address, String passphrase);

    public Request personalSendTransaction(
            Transaction transaction, String password);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy