Namespace Context

This module provides functions for interacting with the execution context of a smart contract on the Massa blockchain.

The functions in this module allow you to retrieve information about the current execution context, such as the caller and callee of the current smart contract, the call stack, the amount of transferred coins, the remaining gas, and the timestamp.

Remarks

The execution context is important for understanding the current state of the smart contract, such as who called the contract, the current contract address, and the transaction creator.

Functions such as ownedAddresses, addressStack, caller, callee, transactionCreator, transferredCoins, timestamp, remainingGas, currentThread and currentPeriod provide access to important context information during smart contract execution.

It is not possible in AssemblyScript to catch thrown exceptions. All exceptions thrown by functions in this module will stop the execution of the smart contract.

You can see that your smart contract execution is stopped by looking at the events.

Index

Functions

Generated using TypeDoc