Skip to main content

Crate tai_core

Crate tai_core 

Source
Expand description

§tai-core

Core library for Tai — the tokenized agentic infrastructure layer on Sui.

tai-core is the single source of truth that both the tai-cli binary and the WASM-backed @tai/sdk wrap. It exposes:

  • PTB builders for every entry function in the on-chain tai Move package.
  • A Signer abstraction with pluggable backends: local Ed25519 file, Sui keystore inheritance, Turnkey MPC, and TEE-attested signing (Phala Cloud + Mysten Nautilus).
  • An indexer client that subscribes to launchpad events.
  • A one-time-witness coin module templater so an agent can publish its own creator coin at launch time.

See TaiClient for the high-level facade.

Re-exports§

pub use client::select_coin;
pub use client::ExecutionResult;
pub use client::MoveCall;
pub use client::RequestType;
pub use client::TaiClient;
pub use client::SUI_CLOCK_OBJECT_ID;
pub use config::Network;
pub use config::TaiConfig;
pub use error::TaiError;
pub use ids::ObjectId;
pub use ids::SuiAddress;
pub use reads::hire_quote;
pub use reads::AgentTreasuryView;
pub use reads::HireQuote;
pub use reads::LaunchpadAccountView;
pub use reads::LaunchpadConfigView;
pub use rpc::RpcClient;
pub use signer::save_seed_to_file;
pub use signer::Ed25519FileSigner;
pub use signer::Signer;
pub use work_order::WorkOrderStatus;
pub use work_order::WorkOrderView;

Modules§

client
High-level write client: ask the RPC to build a Move call, sign the returned transaction digest, submit via sui_executeTransactionBlock.
config
Network configuration: which Tai deployment to talk to.
error
Crate-wide error type.
ids
Typed wrappers for Sui’s 32-byte addresses and object IDs.
reads
Read-side views over the on-chain Tai objects.
rpc
Minimal Sui JSON-RPC 2.0 client.
signer
The Signer abstraction and built-in implementations.
work_order
WorkOrder — typed read view + status constants.

Type Aliases§

Result
Crate-wide Result alias.