Package nxt.addons
Interface ContractRunnerConfig
- All Known Implementing Classes:
NullContractRunnerConfig
public interface ContractRunnerConfig
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decryptFrom(byte[] publicKey, EncryptedData encryptedData, boolean uncompress) encryptTo(byte[] publicKey, byte[] data, boolean compress) longintlonggetCurrentFeeRateNQTPerFXT(int chainId) shortlonggetFeeRateNQTPerFXT(int chainId) longgetManagedAccountId(int index) byte[]getManagedAccountPrivateKey(int index) Returns a private key of the managed account with the specified indexbyte[]getManagedAccountPublicKey(int index) byte[]intlonglongbyte[]byte[]byte[]byte[]voidbooleanbooleanbooleanboolean
-
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
ContractRunnerConfig.RunnerMode 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 indexUse 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
-
decryptFrom
-
getPrivateKey
byte[] getPrivateKey() -
getValidatorPrivateKey
byte[] getValidatorPrivateKey() -
getStatus
String getStatus() -
init
-