-
public class ZcashSdkWrapper for all the constant values in the SDK. It is important that these values stay fixed for all users of the SDK. Otherwise, if individual wallet makers are using different values, it becomes easier to reduce privacy by segmenting the anonymity set of users, particularly as it relates to network requests.
-
-
Field Summary
Fields Modifier and Type Field Description private final ZatoshiMINERS_FEEprivate final IntegerMAX_MEMO_SIZEprivate final IntegerEXPIRY_OFFSETprivate final LongPOLL_INTERVAL_SHORTprivate final LongPOLL_INTERVALprivate final LongBLOCK_INTERVAL_MILLISprivate final LongMAX_BACKOFF_INTERVALprivate final StringDEFAULT_SHIELD_FUNDS_MEMO_PREFIXprivate final StringDEFAULT_ALIASprivate final IntegerALIAS_MIN_LENGTHprivate final IntegerALIAS_MAX_LENGTHpublic final static ZcashSdkINSTANCE
-
Method Summary
Modifier and Type Method Description final ZatoshigetMINERS_FEE()Miner's fee in zatoshi. final IntegergetMAX_MEMO_SIZE()The maximum length of a memo. final IntegergetEXPIRY_OFFSET()The amount of blocks ahead of the current height where new transactions are set to expire. final LonggetPOLL_INTERVAL_SHORT()A short amount of time, in milliseconds, to poll for new blocks used typically when a block synchronization error occurs. final LonggetPOLL_INTERVAL()Default amount of time, in milliseconds, to poll for new blocks. final LonggetBLOCK_INTERVAL_MILLIS()Estimate of the time between blocks. final LonggetMAX_BACKOFF_INTERVAL()The default maximum amount of time to wait during retry backoff intervals. final StringgetDEFAULT_SHIELD_FUNDS_MEMO_PREFIX()The default memo to use when shielding transparent funds. final StringgetDEFAULT_ALIAS()The default alias used as part of a file name for the preferences and databases. final IntegergetALIAS_MIN_LENGTH()The minimum alias length to be valid for our use. final IntegergetALIAS_MAX_LENGTH()The maximum alias length to be valid for our use. -
-
Method Detail
-
getMINERS_FEE
final Zatoshi getMINERS_FEE()
Miner's fee in zatoshi.
-
getMAX_MEMO_SIZE
final Integer getMAX_MEMO_SIZE()
The maximum length of a memo.
-
getEXPIRY_OFFSET
final Integer getEXPIRY_OFFSET()
The amount of blocks ahead of the current height where new transactions are set to expire. This value is controlled by the rust backend but it is helpful to know what it is set to and should be kept in sync.
-
getPOLL_INTERVAL_SHORT
final Long getPOLL_INTERVAL_SHORT()
A short amount of time, in milliseconds, to poll for new blocks used typically when a block synchronization error occurs.
-
getPOLL_INTERVAL
final Long getPOLL_INTERVAL()
Default amount of time, in milliseconds, to poll for new blocks. Typically, this should be about half the average block time.
-
getBLOCK_INTERVAL_MILLIS
final Long getBLOCK_INTERVAL_MILLIS()
Estimate of the time between blocks.
-
getMAX_BACKOFF_INTERVAL
final Long getMAX_BACKOFF_INTERVAL()
The default maximum amount of time to wait during retry backoff intervals. Failed loops will never wait longer than this before retyring.
-
getDEFAULT_SHIELD_FUNDS_MEMO_PREFIX
final String getDEFAULT_SHIELD_FUNDS_MEMO_PREFIX()
The default memo to use when shielding transparent funds.
-
getDEFAULT_ALIAS
final String getDEFAULT_ALIAS()
The default alias used as part of a file name for the preferences and databases. This enables multiple wallets to exist on one device, which is also helpful for sweeping funds.
-
getALIAS_MIN_LENGTH
final Integer getALIAS_MIN_LENGTH()
The minimum alias length to be valid for our use.
-
getALIAS_MAX_LENGTH
final Integer getALIAS_MAX_LENGTH()
The maximum alias length to be valid for our use.
-
-
-
-