Skip to main content

load_transaction_state

Function load_transaction_state 

Source
pub async fn load_transaction_state(
    user_id: Uuid,
    transaction_id: Uuid,
) -> Result<Option<TransactionState>, ServerError>
Expand description

Builds a TransactionState for a single transaction id by fetching the transaction, its splits, and any existing note tag through the public server::command::* API. Used by the batch-script runner to feed a per-transaction state to run_scripts without re-implementing the read path.

Each query trips through the typestate runners in server::command::*, so behaviour matches what the rpc natives surface — single dispatch surface honored.