public class TransactionContext extends AbstractOperationContext
AbstractContractContext.EventSourceblockId, chain, fullHashchainById, 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 and Description |
|---|
TransactionContext(Transaction transaction,
ContractRunnerConfig config,
JO runtimeParams,
java.lang.String contractName,
java.lang.String seed) |
| Modifier and Type | Method and Description |
|---|---|
protected JO |
addTriggerData(JO jo,
int managedAccountIndex) |
BlockResponse |
getBlock()
Returns the block in which this transaction is stored
|
TransactionResponse |
getTransaction()
Returns an object representing the trigger transaction data
|
protected JO |
getTransactionJson()
Returns the Json representation of the trigger transaction data
|
getAmountNQT, getChainOfTransaction, getPhasingAttachment, getRandomSeed, getRecipientId, getRuntimeParams, getSenderId, isSameChain, isSameRecipient, isSameSender, notPaymentTransaction, notSameChain, notSameRecipient, notSameSender, validateSameAccountcanSetResponse, 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, verifypublic TransactionContext(Transaction transaction, ContractRunnerConfig config, JO runtimeParams, java.lang.String contractName, java.lang.String seed)
protected JO getTransactionJson()
AbstractOperationContextgetTransactionJson in class AbstractOperationContextpublic TransactionResponse getTransaction()
AbstractOperationContextgetTransaction in class AbstractOperationContextpublic BlockResponse getBlock()
getBlock in class AbstractContractContextprotected JO addTriggerData(JO jo, int managedAccountIndex)
addTriggerData in class AbstractContractContext