Package nxt.addons

Interface ContractRunnerConfig

All Known Implementing Classes:
NullContractRunnerConfig

public interface ContractRunnerConfig
  • Method Details

    • getPublicKey

      byte[] getPublicKey()
    • getPublicKeyHexString

      String getPublicKeyHexString()
    • getAccountId

      long getAccountId()
    • getAccount

      String getAccount()
    • getAccountRs

      String getAccountRs()
    • isAutoFeeRate

      boolean isAutoFeeRate()
    • getAutoFeeRatePriority

      FeeRateCalculator.TransactionPriority getAutoFeeRatePriority()
    • getMinBundlerBalanceFXT

      long getMinBundlerBalanceFXT()
    • getMinBundlerFeeLimitFQT

      long getMinBundlerFeeLimitFQT()
    • getFeeRateNQTPerFXT

      long getFeeRateNQTPerFXT(int chainId)
    • getCurrentFeeRateNQTPerFXT

      long getCurrentFeeRateNQTPerFXT(int chainId)
    • getDefaultDeadline

      short getDefaultDeadline()
    • getParams

      JO getParams()
    • getRunnerMode

    • isValidator

      boolean isValidator()
    • isTriggerTransactionAlwaysIncluded

      boolean isTriggerTransactionAlwaysIncluded()
    • getCatchUpInterval

      int getCatchUpInterval()
    • getMaxSubmittedTransactionsPerInvocation

      int getMaxSubmittedTransactionsPerInvocation()
    • getRunnerSeed

      byte[] getRunnerSeed()
    • getManagedAccountPrivateKey

      byte[] getManagedAccountPrivateKey(int index)
      Returns a private key of the managed account with the specified index

      Use this method only if you require specific access to the managed account private key. Prefer AbstractContractContext.createTransaction(APICall.Builder, boolean, int) for general creation of transactions.

      Parameters:
      index - Index of the managed account
      Returns:
      private key as byte array
    • getManagedAccountPublicKey

      byte[] getManagedAccountPublicKey(int index)
    • getManagedAccountId

      long getManagedAccountId(int index)
    • getManagedAccountsMasterPublicKey

      byte[] getManagedAccountsMasterPublicKey()
    • isManagedAccountsEnabled

      boolean isManagedAccountsEnabled()
    • getContractProvider

      ContractProvider getContractProvider()
    • encryptTo

      EncryptedData encryptTo(byte[] publicKey, byte[] data, boolean compress)
    • decryptFrom

      byte[] decryptFrom(byte[] publicKey, EncryptedData encryptedData, boolean uncompress)
    • getPrivateKey

      byte[] getPrivateKey()
    • getValidatorPrivateKey

      byte[] getValidatorPrivateKey()
    • getStatus

      String getStatus()
    • init

      void init(JO config)