Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

✅nexus_interface::onchain_tool_result

Struct OnchainToolResult

Durable result layout for a canonical on-chain Tool invocation.

public struct OnchainToolResult has key
Fields

id: sui::object::UID

Struct OnchainToolResultInnerV1

Version one stored layout for [OnchainToolResult].

The stable [OnchainToolResult] cannot contain these fields because its published layout must remain unchanged while stored data evolves.

Fields

execution_id: sui::object::IDfinalized: boolstamps: std::option::Option<sui::vec_map::VecMap<sui::object::ID, vector<u8>>>tag: std::option::Option<vector<u8>>named_payload: std::option::Option<sui::vec_map::VecMap<vector<u8>, nexus_primitives::data::NexusData>>finalize_tx_digest: std::option::Option<vector<u8>>finalize_recipient: std::option::Option<address>

Struct InputCommitmentKey

Private-construction key for the result's canonical input-commitment dynamic field.

Fields

Struct InputCommitment

Private-construction value for the result's canonical input-commitment dynamic field.

Fields

bytes: vector<u8>

Constants

Function new

Creates an owned empty result bound to the execution UID that created the worksheet.

Function finalize_and_share

Finalizes and shares the result after every required UID has participated.

The result satisfies its own requirement before completing [UIDRequirements]. This verifies that no requirements remain and binds them to this exact result without restricting which caller may complete the operation.

Function consume

Consumes and deletes the finalized result, returning the exact durable contents workflow needs.

Function id

The object ID of the result.

Function is_finalized

Whether the result has been finalized by its tool.

Function execution_id

The ID of the execution this result belongs to.

Function input_commitment

Returns the canonical resolved-input commitment stamped for this Tool invocation.

Last updated