Package nxt.addons
Class BlockContext
java.lang.Object
nxt.addons.AbstractContractContext
nxt.addons.BlockContext
-
Nested Class Summary
Nested classes/interfaces inherited from class nxt.addons.AbstractContractContext
AbstractContractContext.EventSource -
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Returns the block in which this transaction is storedintReturns the height of the block which triggered the contractMethods inherited from class nxt.addons.AbstractContractContext
addTriggerData, 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, getPhasingAttachment, getPublicKey, getPublicKey, getPublicKey, getPublicKeyHexString, getRandomnessSource, getResponse, getRuntimeParams, getSource, initRandom, isPermissionGranted, loadContract, logErrorMessage, logInfoMessage, parseAccountId, parseHexString, publicKeyToAccountId, publicKeyToAccountId, rsAccount, setContractSetupParameters, setResponse, sign, toHexString, verify
-
Constructor Details
-
BlockContext
-
-
Method Details
-
getBlock
Returns the block in which this transaction is stored- Specified by:
getBlockin classAbstractContractContext- Returns:
- the block response
-
getHeight
public int getHeight()Returns the height of the block which triggered the contract- Returns:
- the block height
-