M_Iota_Lib_CSharp_Api_IotaApi_GetNewAddress - iotaledger-archive/iota.lib.csharp GitHub Wiki
Generates a new address from a seed and returns the remainderAddress. This is either done deterministically, or by providing the index of the new remainderAddress
Namespace: Iota.Lib.CSharp.Api
Assembly: IotaApi (in IotaApi.dll) Version: 0.9.0.24212 (1.0.0.0)
C#
public string[] GetNewAddress(
string seed,
int index = 0,
bool checksum = false,
int total = 0,
bool returnAll = false
)
- seed
- Type: System.String
Tryte-encoded seed. It should be noted that this seed is not transferred - index (Optional)
- Type: System.Int32
Optional (default null). Key index to start search from. If the index is provided, the generation of the address is not deterministic. - checksum (Optional)
- Type: System.Boolean
Optional (default false). Adds 9-tryte address checksum - total (Optional)
- Type: System.Int32
Optional (default 1)Total number of addresses to generate. - returnAll (Optional)
- Type: System.Boolean
If true, it returns all addresses which were deterministically generated (until findTransactions returns null)
Type: String[]
an array of strings with the specifed number of addresses