📤Transaction Builders
Audience: Nexus SDK integrators (Rust).
Area: Transaction Builders.
Generated from: Nexus SDK public transaction API at tag v2.1.1 commit 08bfe76e726922ce512d623fbc1d2e1bd786bcd4; the generated inventory is preserved and 2.1.1 builders are source-verified.
2.1.1 transaction boundaries
Transaction builders consume generated binding values and object references resolved from an authenticated context. Use the SDK's execution-ID helpers and transaction-output reads to connect a submitted digest to the resulting Task, Occurrence, Execution, or Tool object; do not infer identity from a caller-supplied ID alone.
TaskInnerV1::advertised_offer returns an offer only for an active task with an advertised occurrence, and its DispatchOffer conversion validates deadline ordering and priority-fee bounds. Separately, the on-chain scheduler uses LEADER_SUBMISSION_WINDOW_MS = 30000 as the leader-submission and retry window. Re-read effects and object versions before submitting or retrying an ambiguous transaction.
sdk/src/transactions/leader.rs
SchedulerTransaction<'transaction>
pub struct SchedulerTransaction<'transaction> { /* private fields */ }sdk/src/transactions/tool.rs
Public input types
ExternalVerifierObjectInput { object_ref, mutable }describes one verifier object.ExternalVerifierRegistrationInput { package_id, module_name, function_name, witness, shared_objects }is the preflighted external-verifier registration.OffChainToolRegistrationcarries an off-chain Tool's owner address,ToolMeta, invocation cost, optional initial NetworkAuth key, and verifier support.
Registration and mutation builders
register_off_chain_for_self_ptb
Register one off-chain Tool with sender ownership and coin gas.
register_off_chain_for_self_with_address_balance_ptb
Register one off-chain Tool while using address-balance gas.
register_off_chain_batch_for_self_with_address_balance_ptb
Register a batch through address-balance gas.
register_on_chain_for_self_ptb
Register one on-chain Tool with sender ownership and coin gas.
register_on_chain_for_self_with_address_balance_ptb
Register one on-chain Tool through address-balance gas.
set_invocation_cost_ptb
Set the registered Tool invocation price.
unregister_ptb
Unregister an active Tool.
migrate_on_chain_tool_package_ptb
Replace an active on-chain Tool's package address.
configure_registered_key_verifier_ptb
Select the built-in RegisteredKey verifier.
register_external_verifier_ptb
Register a preflighted external verifier.
claim_collateral_for_self_ptb
Claim Tool collateral through the owner capability.
update_tool_timeout_ptb
Update invocation timeout.
update_off_chain_tool_url_ptb
Replace an off-chain Tool endpoint.
sdk/src/transactions/dag.rs
Public preparation types
RuntimeToolCashierRefidentifies one runtime ToolCashier reference.OffchainVerifierKeyBindingsholds resolved request and response key bindings.PreparedOffchainToolResultSubmissiondistinguishes direct, RegisteredKey, and external-verifier off-chain submission preparation.OnchainToolArgumentrepresents a pure, owned, immutable shared, or mutable shared Tool argument.PreparedOnchainToolExecutioncontains the derived package call and arguments for one on-chain Tool.PreparedOnchainToolResultSubmissiondistinguishes a result object from a failed execution.BrokenOnchainToolResultCleanupInputidentifies a broken result that must be cleaned during abort.
Public builders and composition helpers
submit_off_chain_tool_result_for_walk_ptb
Submit one prepared off-chain result for a walk.
submit_on_chain_tool_result_for_walk_ptb
Execute and submit one prepared on-chain result.
consume_on_chain_tool_result_for_walk_ptb
Consume a prepared on-chain result object.
dry_run_on_chain_tool_result_for_walk_ptb
Build the on-chain Tool dry-run transaction.
create_on_chain_tool_result_for_walk
Compose creation of an on-chain result inside a PTB.
framework_random_object
Add the Sui framework Random shared object.
consume_on_chain_tool_result_for_walk
Compose result consumption inside a PTB.
record_committed_tool_result_gas_charge_by_leader_ptb
Record leader commit and settlement gas.
settle_committed_tool_result_for_walk_by_leader_ptb
Settle a committed result with leader authority.
abort_expired_execution_for_self_ptb
Abort expired execution and supplied broken-result cleanups.
settle_committed_tool_result_for_walk_for_self_ptb
Permissionlessly settle one committed result.
settle_onchain_tool_result_for_walk
Compose on-chain result settlement.
settle_onchain_tool_result_for_walk_for_self_ptb
Build a permissionless on-chain result settlement.
cleanup_broken_onchain_tool_result
Compose cleanup for one broken on-chain result.
These builders derive identity from authenticated Move objects. Do not reintroduce caller-supplied Execution, vertex, or leader identity where the documented signatures resolve it from object inputs.
sdk/src/transactions/gas.rs
sdk/src/transactions/network.rs
sdk/src/transactions/tool_cashier.rs
The SDK does not expose the historical abort_expired_execution_with_tool_cashier_ptb cashier-candidate builder. Do not use a ToolCashier ID, FQN, or discovered cashier candidate as the identity of an expired Invocation.
sdk/src/transactions/invocation.rs
The exact abort_expired_ptb declaration appears once in the source-derived inventory below. It consumes the matching timeout/refund receipt before applying the abort and any optional occurrence settlement; the neighboring settle function is crate-private and is not a public caller-facing builder.
sdk/src/transactions/scheduler/mod.rs
The scheduler transaction module exports three low-level production builders: dispatch_occurrence_ptb, expire_occurrence_with_gas_charge_ptb, and reject_occurrence_with_gas_charge_ptb. Task creation and the remaining lifecycle compilers are crate-private implementation details of the Scheduler facade.
sdk/src/transactions/network_auth.rs
Tool-binding composition is crate-private and consumed by higher-level Tool and NetworkAuth actions. The public transaction surface contains only the leader variants:
create_leader_binding_and_register_key_ptbcreates a leader key binding, verifies proof of possession, registers its first key, and shares the binding.register_leader_key_on_existing_binding_ptbrotates a key on an existing leader binding.
sdk/src/transactions/leader.rs
over_network_cap_struct_tag(objects)returns the configuredCloneableOwnerCap<OverNetwork>tag.register_for_self_ptb(objects, stake_coin, stake_us)registers the sender as a leader while retaining unused$USin the input coin.activate_and_claim_for_self_ptb(objects, leader_cap_over_network)activates and claims leadership with the transaction digest token.suspend_if_token_for_self_ptb(objects, leader_cap_over_network, token)suspends only when the supplied token still matches the active claim.
No public Protocol state-schema migration module or V2 state decoder exists in the documented SDK. Do not infer such a surface from test fixtures or from the on-chain Tool package-pointer builder documented above.
Source-derived public API inventory
NexusTransaction
NexusTransaction::scheduler
NexusTransaction::finish
NexusTransaction::submit
SchedulerTransaction
SchedulerTransaction::create_task
SchedulerTransaction::dispatch_occurrence
SchedulerTransaction::expire_occurrence
TaskDraft
TaskDraft::schedule
TaskDraft::share
AgentInput
AgentInput::object_id
OffchainVerifierKeyBindings
PreparedOffchainToolResultSubmission
OnchainToolArgument
PreparedOnchainToolExecution
PreparedOnchainToolResultSubmission
BrokenOnchainToolResultCleanupInput
submit_off_chain_tool_result_for_walk_ptb
submit_on_chain_tool_result_for_walk_ptb
consume_on_chain_tool_result_for_walk_ptb
dry_run_on_chain_tool_result_for_walk_ptb
create_on_chain_tool_result_for_walk
framework_random_object
consume_on_chain_tool_result_for_walk
record_committed_tool_result_gas_charge_by_leader_ptb
settle_committed_tool_result_for_walk_by_leader_ptb
abort_expired_execution_for_self_ptb
settle_committed_tool_result_for_walk_for_self_ptb
settle_onchain_tool_result_for_walk
settle_onchain_tool_result_for_walk_for_self_ptb
cleanup_broken_onchain_tool_result
deposit_sui_to_address_balance
deposit_sui_to_address_balances
InvocationPolicyCall
InvocationTarget
InvocationPolicyCall::new
InvocationPolicyCall::fixed_price
InvocationPolicyCall::finite_credits
finite_credits_policy
time_pass
authorize
authorize_ptb
abort_expired_ptb
over_network_cap_struct_tag
configure_registry_ptb
register_for_self_ptb
activate_and_claim_for_self_ptb
suspend_if_token_for_self_ptb
collect_priority_fee_deposits
configure_priority_fee_vault
swap_us_for_sui
withdraw_priority_fee
create_leader_binding_and_register_key_ptb
register_leader_key_on_existing_binding_ptb
expire_occurrence_with_gas_charge_ptb
reject_occurrence_with_gas_charge_ptb
dispatch_occurrence_ptb
settle_occurrence_ptb
re-export pub, use, command, dispatch_occurrence_ptb, expire_occurrence_with_gas_charge_ptb, reject_occurrence_with_gas_charge_ptb, settle_occurrence_ptb
publish_package_ptb
ExternalVerifierObjectInput
ExternalVerifierRegistrationInput
OffChainToolRegistration
register_off_chain_for_self_ptb
register_off_chain_for_self_with_address_balance_ptb
register_off_chain_batch_for_self_with_address_balance_ptb
register_on_chain_for_self_ptb
register_on_chain_for_self_with_address_balance_ptb
set_invocation_cost_ptb
set_verified_ptb
unregister_ptb
migrate_on_chain_tool_package_ptb
configure_registered_key_verifier_ptb
register_external_verifier_ptb
claim_collateral_for_self_ptb
update_tool_timeout_ptb
update_off_chain_tool_url_ptb
update_tool_metadata_ptb
enable_finite_credits_ptb
close_finite_credit_issuance_ptb
open_finite_credit_issuance_ptb
update_finite_credit_terms_ptb
buy_finite_credits_ptb
buy_more_finite_credits_ptb
buy_finite_credits_from_balance_ptb
issue_finite_credits_ptb
issue_more_finite_credits_ptb
enable_time_pass_ptb
close_time_pass_issuance_ptb
open_time_pass_issuance_ptb
update_time_pass_terms_ptb
buy_time_pass_ptb
buy_more_time_pass_ptb
buy_time_pass_from_balance_ptb
issue_time_pass_ptb
update_time_pass_window_ptb
restore_finite_credit_refund_ptb
collect_invocations_ptb
collect_deposits_ptb
Last updated

