Function darkfi::runtime::import::util::get_tx

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

Reads a transaction 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 bytes vector in the environment. Otherwise, returns an error code.

Permissions: deploy, metadata, exec