public class IotaAPIUtils extends Object
| Constructor and Description |
|---|
IotaAPIUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
newAddress(AddressRequest addressRequest,
int index,
ICurl curl)
Generates a new address
|
static String |
newAddress(String seed,
int security,
int index,
boolean checksum,
ICurl curl)
Generates a new address
|
static List<String> |
signInputsAndReturn(String seed,
List<Input> inputs,
Bundle bundle,
List<String> signatureFragments,
ICurl curl)
Finalizes and signs the bundle transactions.
|
public static String newAddress(String seed, int security, int index, boolean checksum, ICurl curl) throws ArgumentException
seed - The tryte-encoded seed. It should be noted that this seed is not transferred.security - The security level of private key / seed.index - The index to start search from. If the index is provided, the generation of the address is not deterministic.checksum - The adds 9-tryte address checksumcurl - The curl instance.ArgumentException - is thrown when the specified input is not valid.public static String newAddress(AddressRequest addressRequest, int index, ICurl curl) throws ArgumentException
addressRequest - AddressRequestindex - The index to start search from. If the index is provided, the generation of the address is not deterministic.curl - The curl instance.ArgumentException - is thrown when the specified input is not valid.public static List<String> signInputsAndReturn(String seed, List<Input> inputs, Bundle bundle, List<String> signatureFragments, ICurl curl) throws ArgumentException
seed - The tryte-encoded seed. It should be noted that this seed is not transferred.inputs - bundle - The bundlesignatureFragments - curl - The curl instance.ArgumentException - When the seed is invalidCopyright © 2019. All rights reserved.