Skip to main content
The Sui Rust SDK provides strongly-typed interfaces through several re-exported crates.

Type Imports

The SDK re-exports types from multiple crates:

Base Types

Core types from sui_types::base_types:

ObjectID

32-byte identifier for objects:

SuiAddress

32-byte address for accounts:

TransactionDigest

32-byte hash of transaction:

SequenceNumber

Object version number:

RPC Types

Types from sui_json_rpc_types:

SuiObjectData

Object information:

SuiObjectDataOptions

Control which fields to fetch:

SuiTransactionBlockResponse

Transaction execution result:

SuiTransactionBlockResponseOptions

Control which fields to fetch for transactions:

EventFilter

Filter for querying events:

SuiEvent

Event data:

Transaction Types

Types from sui_types::transaction:

TransactionData

Unsigned transaction:

Transaction

Signed transaction:

Cryptography Types

Types from sui_crypto:

SuiKeyPair

Key pair for signing:

Signature

Transaction signature:

Move Types

Types from move_core_types:

TypeTag

Move type representation:

Identifier

Move identifier:

Utility Types

BigInt

Wrapper for large integers in JSON:

Owner

Object ownership:

Type Conversions

Common conversions: