Expand description
Functions for interacting with the current runtime.
Functions§
- blake2b
- Returns a 32-byte BLAKE2b digest
- call_
contract - Calls the given stored contract, passing the given arguments to it.
- call_
versioned_ contract - Invokes the specified
entry_point_name
of stored logic at a specificcontract_package_hash
address, for the most current version of a contract package by default or a specificcontract_version
if one is provided, and passing the providedruntime_args
to it - get_
blocktime - Returns the current
BlockTime
. - get_
call_ stack - Returns the call stack.
- get_
caller - Returns the caller of the current context, i.e. the
AccountHash
of the account which made the deploy request. - get_key
- Returns the requested named
Key
from the current context. - get_
named_ arg - Returns given named argument passed to the host for the current module invocation.
- get_
phase - Returns the current
Phase
. - has_key
- Returns
true
ifname
exists in the current context’s named keys. - is_
valid_ uref - Validates uref against named keys.
- list_
authorization_ keys - Returns the set of
AccountHash
from the calling account’s contextauthorization_keys
. - list_
named_ keys - Returns the named keys of the current context.
- put_key
- Stores the given
Key
undername
in the current context’s named keys. - random_
bytes - Returns 32 pseudo random bytes.
- remove_
key - Removes the
Key
stored undername
in the current context’s named keys. - ret
- Returns the given
CLValue
to the host, terminating the currently running module. - revert
- Stops execution of a contract and reverts execution effects with a given
ApiError
.