org.bcos.web3j.protocol.parity.Parity Maven / Gradle / Ivy
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> personalSignerEnabled();
Request, PersonalSign> personalSign(String hexMessage, String accountId, String password);
Request, PersonalEcRecover> personalEcRecover(String hexMessage, String signedMessage);
Request, PersonalListAccounts> personalListAccounts();
Request, NewAccountIdentifier> personalNewAccount(String password);
Request, NewAccountIdentifier> personalNewAccountFromPhrase(String phrase, String password);
Request, NewAccountIdentifier> personalNewAccountFromWallet(
WalletFile walletFile, String password);
Request, PersonalUnlockAccount> personalUnlockAccount(
String accountId, String password, BigInteger duration);
Request, PersonalUnlockAccount> personalUnlockAccount(String accountId, String password);
Request, org.bcos.web3j.protocol.core.methods.response.EthSendTransaction>
personalSignAndSendTransaction(
Transaction transaction, String password);
Request, VoidResponse> personalSetAccountName(
String accountId, String newAccountName);
Request, VoidResponse> personalSetAccountMeta(String accountId, Map metadata);
Request, PersonalAccountsInfo> personalAccountsInfo();
Request, PersonalRequestsToConfirm> personalRequestsToConfirm();
Request, org.bcos.web3j.protocol.core.methods.response.EthSendTransaction> personalConfirmRequest(
String requestId, Transaction transaction, String password);
Request, PersonalRejectRequest> personalRejectRequest(String requestId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy