Package nxt.addons
Class TransactionContext
java.lang.Object
nxt.addons.AbstractContractContext
nxt.addons.AbstractOperationContext
nxt.addons.TransactionContext
-
Nested Class Summary
Nested classes/interfaces inherited from class nxt.addons.AbstractContractContext
AbstractContractContext.EventSource -
Field Summary
Fields inherited from class nxt.addons.AbstractOperationContext
blockId, chain, fullHashFields inherited from class nxt.addons.AbstractContractContext
chainById, chainByName, config, contractName, contractSetupParameters, FEE_CANNOT_CALCULATE, FEE_EXCEEDS_AMOUNT, INTERNAL_ERROR_CODE_THRESHOLD, MANAGED_ACCOUNTS_INDEX_HINT_FIELD, MESSAGE_TO_ENCRYPT_WITHOUT_SECRET_PHRASE, response, source, VALIDATE_SAME_ACCOUNT_CODE, VALIDATE_SAME_CHAIN, VALIDATE_SAME_TRANSACTION_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionTransactionContext(Transaction transaction, ContractRunnerConfig config, JO runtimeParams, String contractName, String seed) -
Method Summary
Modifier and TypeMethodDescriptionprotected JOaddTriggerData(JO jo, int managedAccountIndex) getBlock()Returns the block in which this transaction is storedReturns an object representing the trigger transaction dataprotected JOReturns the Json representation of the trigger transaction dataMethods inherited from class nxt.addons.AbstractOperationContext
getAmountNQT, getChainOfTransaction, getPhasingAttachment, getRandomSeed, getRecipientId, getRuntimeParams, getSenderId, isSameChain, isSameRecipient, isSameSender, notPaymentTransaction, notSameChain, notSameRecipient, notSameSender, validateSameAccountMethods inherited from class nxt.addons.AbstractContractContext
canSetResponse, createTransaction, createTransaction, createTransaction, fullHashToId, fullHashToId, generateErrorResponse, generateInfoResponse, generateInternalErrorResponse, generateResponse, getAccount, getAccountRs, getBlockchainConstants, getBlockchainHeight, getChain, getChain, getConfig, getContext, getContractName, getContractRunnerConfigParams, getContractSetupParameters, getHash, getHash, getNetworkType, getParams, getParentChain, getPublicKey, getPublicKey, getPublicKey, getPublicKeyHexString, getRandomnessSource, getResponse, getSource, initRandom, isPermissionGranted, loadContract, logErrorMessage, logInfoMessage, parseAccountId, parseHexString, publicKeyToAccountId, publicKeyToAccountId, rsAccount, setContractSetupParameters, setResponse, sign, toHexString, verify
-
Constructor Details
-
TransactionContext
public TransactionContext(Transaction transaction, ContractRunnerConfig config, JO runtimeParams, String contractName, String seed)
-
-
Method Details
-
getTransactionJson
Description copied from class:AbstractOperationContextReturns the Json representation of the trigger transaction data- Specified by:
getTransactionJsonin classAbstractOperationContext- Returns:
- the Json representation of the trigger transaction data
-
getTransaction
Description copied from class:AbstractOperationContextReturns an object representing the trigger transaction data- Specified by:
getTransactionin classAbstractOperationContext- Returns:
- an object representing the trigger transaction data
-
getBlock
Returns the block in which this transaction is stored- Specified by:
getBlockin classAbstractContractContext- Returns:
- the block response
-
addTriggerData
- Overrides:
addTriggerDatain classAbstractContractContext
-