Runtime
Runtime.expect(condition:Bool, error:String)
None
Does nothing if the condition is true, otherwise terminates execution with the specified error message.
Runtime.log(message:String)
None
To log a message.
Runtime.isWitness(address:Address)
Bool
Check if the specified address was witness to the transaction (eg: the address signed the transaction). Multiple addresses can be witness in the case of the multi-signature transactions.
Runtime.isTrigger()
Bool
Returns true if current code is being ran inside trigger, returns false otherwise.
Runtime.transactionHash()
Hash
Returns the hash of the current executing transaction, if any.
Runtime.deployContract(from:Address, contract:Module)
None
Deploys a contract into the current chain.
Runtime.upgradeContract(from:Address, contract:Module)
None
Upgrades an existing contract, if the contract allows it.
Runtime.gasTarget()
Address
Returns the address that will receive part of the gas fees for the current transaction. A "Gas escrow" event must have happened already otherwise it will return an null address.
Runtime.context()
String
Returns the name of the current executing context. eg: Use this to validate that the current code can only be executed from a specific place.
Runtime.previousContext()
String
Returns the name of the caller context, if any. eg: Use this to validate that the current code can only be executed from a specific place.
Last updated