Package 

Object ZcashSdk


  • 
    public class ZcashSdk
    
                        

    Wrapper 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.

    • Method Detail

      • 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.

      • 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_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.