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.String
METHOD_ADD_ACCOUNT
static java.lang.String
METHOD_CHANGE_MEMO
static java.lang.String
METHOD_CHANGE_OWNER
static java.lang.String
METHOD_GENERATE_ACCOUNT
static java.lang.String
METHOD_GET_ACCOUNT_FROM_ADDRESS
static java.lang.String
METHOD_REMOVE_ACCOUNT
static java.lang.String
METHOD_SET_ACCOUNT_WEIGHT
static java.lang.String
METHOD_SET_THRESHOLD
static java.lang.String
METHOD_UPDATE_ACCOUNT
static java.lang.String
METHOD_VERIFY_SIGNATURE
static java.lang.String
SERVICE_NAME
-
Constructor Summary
Constructors Constructor Description MultiSigService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_account(AddAccountPayload addAccountPayload)
void
change_memo(ChangeMemoPayload changeMemoPayload)
void
change_owner(ChangeOwnerPayload changeOwnerPayload)
GenerateMultiSigAccountResponse
generate_account(GenerateMultiSigAccountPayload generateMultiSigAccountPayload)
GetMultiSigAccountResponse
get_account_from_address(GetMultiSigAccountPayload getMultiSigAccountPayload)
Account
remove_account(RemoveAccountPayload removeAccountPayload)
void
set_account_weight(SetAccountWeightPayload setAccountWeightPayload)
void
set_threshold(SetThresholdPayload setThresholdPayload)
void
update_account(UpdateAccountPayload updateAccountPayload)
void
verify_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
-
-