Function darkfi::runtime::import::util::get_tx_location

source ยท
pub(crate) fn get_tx_location(
    ctx: FunctionEnvMut<'_, Env>,
    ptr: WasmPtr<u8>,
) -> i64
Expand description

Reads a transaction location by hash from the transactions store.

This function can be called from the Exec or Metadata ContractSection.

On success, returns the length of the transaction location bytes vector in the environment. Otherwise, returns an error code.

Permissions: deploy, metadata, exec