mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
updated getAccountData
This commit is contained in:
parent
eddf73dd09
commit
1114e56b42
@ -732,24 +732,8 @@ public class IotaAPI extends IotaAPICore {
|
||||
throws InvalidBundleException, ArgumentException, InvalidSignatureException,
|
||||
InvalidTrytesException, InvalidSecurityLevelException, InvalidAddressException, NoInclusionStatesException, NoNodeInfoException {
|
||||
|
||||
|
||||
StopWatch stopWatch = new StopWatch();
|
||||
|
||||
// validate seed
|
||||
if ((!InputValidator.isValidSeed(seed))) {
|
||||
throw new IllegalStateException("Invalid Seed");
|
||||
}
|
||||
|
||||
if (security < 1 || security > 3) {
|
||||
throw new InvalidSecurityLevelException();
|
||||
}
|
||||
|
||||
// If start value bigger than end, return error
|
||||
// or if difference between end and start is bigger than 500 keys
|
||||
if (start > end || end > (start + 500)) {
|
||||
throw new IllegalStateException("Invalid inputs provided");
|
||||
}
|
||||
|
||||
GetNewAddressResponse gna = getNewAddress(seed, security, index, checksum, total, returnAll);
|
||||
GetTransferResponse gtr = getTransfers(seed, security, start, end, inclusionStates);
|
||||
GetBalancesAndFormatResponse gbr = getInputs(seed, security, start, end, threshold);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user