Class MultiSigService
- java.lang.Object
-
- org.nervos.muta.service.multi_sig.MultiSigService
-
public class MultiSigService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMETHOD_ADD_ACCOUNTstatic java.lang.StringMETHOD_CHANGE_MEMOstatic java.lang.StringMETHOD_CHANGE_OWNERstatic java.lang.StringMETHOD_GENERATE_ACCOUNTstatic java.lang.StringMETHOD_GET_ACCOUNT_FROM_ADDRESSstatic java.lang.StringMETHOD_REMOVE_ACCOUNTstatic java.lang.StringMETHOD_SET_ACCOUNT_WEIGHTstatic java.lang.StringMETHOD_SET_THRESHOLDstatic java.lang.StringMETHOD_UPDATE_ACCOUNTstatic java.lang.StringMETHOD_VERIFY_SIGNATUREstatic java.lang.StringSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description MultiSigService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_account(AddAccountPayload addAccountPayload)voidchange_memo(ChangeMemoPayload changeMemoPayload)voidchange_owner(ChangeOwnerPayload changeOwnerPayload)GenerateMultiSigAccountResponsegenerate_account(GenerateMultiSigAccountPayload generateMultiSigAccountPayload)GetMultiSigAccountResponseget_account_from_address(GetMultiSigAccountPayload getMultiSigAccountPayload)Accountremove_account(RemoveAccountPayload removeAccountPayload)voidset_account_weight(SetAccountWeightPayload setAccountWeightPayload)voidset_threshold(SetThresholdPayload setThresholdPayload)voidupdate_account(UpdateAccountPayload updateAccountPayload)voidverify_signature(SignedTransaction signedTransaction)
-
-
-
Field Detail
-
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
-
METHOD_GENERATE_ACCOUNT
public static final java.lang.String METHOD_GENERATE_ACCOUNT
- See Also:
- Constant Field Values
-
METHOD_GET_ACCOUNT_FROM_ADDRESS
public static final java.lang.String METHOD_GET_ACCOUNT_FROM_ADDRESS
- See Also:
- Constant Field Values
-
METHOD_VERIFY_SIGNATURE
public static final java.lang.String METHOD_VERIFY_SIGNATURE
- See Also:
- Constant Field Values
-
METHOD_UPDATE_ACCOUNT
public static final java.lang.String METHOD_UPDATE_ACCOUNT
- See Also:
- Constant Field Values
-
METHOD_CHANGE_OWNER
public static final java.lang.String METHOD_CHANGE_OWNER
- See Also:
- Constant Field Values
-
METHOD_CHANGE_MEMO
public static final java.lang.String METHOD_CHANGE_MEMO
- See Also:
- Constant Field Values
-
METHOD_ADD_ACCOUNT
public static final java.lang.String METHOD_ADD_ACCOUNT
- See Also:
- Constant Field Values
-
METHOD_REMOVE_ACCOUNT
public static final java.lang.String METHOD_REMOVE_ACCOUNT
- See Also:
- Constant Field Values
-
METHOD_SET_ACCOUNT_WEIGHT
public static final java.lang.String METHOD_SET_ACCOUNT_WEIGHT
- See Also:
- Constant Field Values
-
METHOD_SET_THRESHOLD
public static final java.lang.String METHOD_SET_THRESHOLD
- See Also:
- Constant Field Values
-
-
Method Detail
-
generate_account
public GenerateMultiSigAccountResponse generate_account(GenerateMultiSigAccountPayload generateMultiSigAccountPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
get_account_from_address
public GetMultiSigAccountResponse get_account_from_address(GetMultiSigAccountPayload getMultiSigAccountPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
verify_signature
public void verify_signature(SignedTransaction signedTransaction) throws java.io.IOException
- Throws:
java.io.IOException
-
update_account
public void update_account(UpdateAccountPayload updateAccountPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
change_owner
public void change_owner(ChangeOwnerPayload changeOwnerPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
change_memo
public void change_memo(ChangeMemoPayload changeMemoPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
add_account
public void add_account(AddAccountPayload addAccountPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
remove_account
public Account remove_account(RemoveAccountPayload removeAccountPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
set_account_weight
public void set_account_weight(SetAccountWeightPayload setAccountWeightPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
set_threshold
public void set_threshold(SetThresholdPayload setThresholdPayload) throws java.io.IOException
- Throws:
java.io.IOException
-
-