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

org.bcos.web3j.protocol.parity.Parity Maven / Gradle / Ivy

There is a newer version: 2.6.6
Show newest version
package org.bcos.web3j.protocol.parity;

import java.math.BigInteger;
import java.util.Map;

import org.bcos.web3j.crypto.WalletFile;
import org.bcos.web3j.protocol.Web3j;
import org.bcos.web3j.protocol.Web3jService;
import org.bcos.web3j.protocol.core.Request;
import org.bcos.web3j.protocol.core.methods.request.Transaction;
import org.bcos.web3j.protocol.core.methods.response.VoidResponse;
import org.bcos.web3j.protocol.parity.methods.response.NewAccountIdentifier;
import org.bcos.web3j.protocol.parity.methods.response.PersonalAccountsInfo;
import org.bcos.web3j.protocol.parity.methods.response.PersonalEcRecover;
import org.bcos.web3j.protocol.parity.methods.response.PersonalListAccounts;
import org.bcos.web3j.protocol.parity.methods.response.PersonalRejectRequest;
import org.bcos.web3j.protocol.parity.methods.response.PersonalRequestsToConfirm;
import org.bcos.web3j.protocol.parity.methods.response.PersonalSign;
import org.bcos.web3j.protocol.parity.methods.response.PersonalSignerEnabled;
import org.bcos.web3j.protocol.parity.methods.response.PersonalUnlockAccount;

/**
 * JSON-RPC Request object building factory for Parity.
 */
public interface Parity extends Web3j {
    static Parity build(Web3jService web3jService) {
        return new JsonRpc2_0Parity(web3jService);
    }

    Request personalSignerEnabled();

    Request personalSign(String hexMessage, String accountId, String password);

    Request personalEcRecover(String hexMessage, String signedMessage);

    Request personalListAccounts();

    Request personalNewAccount(String password);

    Request personalNewAccountFromPhrase(String phrase, String password);

    Request personalNewAccountFromWallet(
            WalletFile walletFile, String password);

    Request personalUnlockAccount(
            String accountId, String password, BigInteger duration);

    Request personalUnlockAccount(String accountId, String password);

    Request
            personalSignAndSendTransaction(
            Transaction transaction, String password);

    Request personalSetAccountName(
            String accountId, String newAccountName);

    Request personalSetAccountMeta(String accountId, Map metadata);

    Request personalAccountsInfo();

    Request personalRequestsToConfirm();

    Request personalConfirmRequest(
            String requestId, Transaction transaction, String password);

    Request personalRejectRequest(String requestId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy