MCPcopy Index your code
hub / github.com/MystenLabs/sui

github.com/MystenLabs/sui @sui-graphql-v2024.4.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release sui-graphql-v2024.4.4 ↗ · + Follow
30,455 symbols 145,132 edges 3,456 files 5,917 documented · 19% updated 1d agodevnet-v1.75.0 · 2026-07-06★ 7,724170 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Logo

Welcome to Sui

Sui is a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language.

Sui Highlights

Sui offers the following benefits and capabilities:

  • Unmatched scalability, instant settlement
  • A safe smart contract language accessible to mainstream developers
  • Ability to define rich and composable on-chain assets
  • Better user experience for web3 apps

Sui is the only blockchain today that can scale with the growth of web3 while achieving industry-leading performance, cost, programmability, and usability. As Sui approaches Mainnet launch, it will demonstrate capacity beyond the transaction processing capabilities of established systems – traditional and blockchain alike. Sui is the first internet-scale programmable blockchain platform, a foundational layer for web3.

Sui Architecture

flowchart LR
    CC(CLI Client) --> ClientService
    RC(Rest Client) --> ClientService
    RPCC(RPC Client) --> ClientService
    ClientService --> AuthorityAggregator
    AuthorityAggregator --> AC1[AuthorityClient] & AC2[AuthorityClient]
    subgraph Authority1
      AS[AuthorityState]
    end
    subgraph Authority2
      AS2[AuthorityState]
    end
    AC1 <==>|Network TCP| Authority1
    AC2 <==>|Network TCP| Authority2

Sui Overview

Sui is a smart contract platform maintained by a permissionless set of authorities that play a role similar to validators or miners in other blockchain systems.

Sui offers scalability and unprecedented low-latency for common use cases. Sui makes the vast majority of transactions processable in parallel, which makes better use of processing resources, and offers the option to increase throughput with more resources. Sui forgoes consensus to instead use simpler and lower-latency primitives for common use cases, such as payment transactions and asset transfers. This is unprecedented in the blockchain world and enables a number of new latency-sensitive distributed applications, ranging from gaming to retail payment at physical points of sale.

Sui is written in Rust and supports smart contracts written in the Move programming language to define assets that may have an owner. Move programs define operations on these assets including custom rules for their creation, the transfer of these assets to new owners, and operations that mutate assets.

Sui has a native token called SUI, with a fixed supply. The SUI token is used to pay for gas, and is also used as delegated stake on authorities within an epoch. The voting power of authorities within this epoch is a function of this delegated stake. Authorities are periodically reconfigured according to the stake delegated to them. In any epoch, the set of authorities is Byzantine fault tolerant. At the end of the epoch, fees collected through all transactions processed are distributed to authorities according to their contribution to the operation of the system. Authorities can in turn share some of the fees as rewards to users that delegated stakes to them.

Sui is backed by a number of state-of-the-art peer-reviewed works and years of open source development.

More About Sui

Use the following links to learn more about Sui and the Sui ecosystem:

Extension points exported contracts — how you extend this code

ToUnit (Interface)
Trait that defines a conversion from one unit to another, with a statically-determined integral conversion rate. [9 implementers]
external-crates/move/crates/move-core-types/src/gas_algebra.rs
ChildObjectResolver (Interface)
An abstraction of the (possibly distributed) store for objects. This API only allows for the retrieval of objects, not a [14 …
crates/sui-types/src/storage/mod.rs
Payload (Interface)
A Payload is a transaction wrapper of a particular type (transfer object, shared counter, etc). Calling `make_transactio [6 …
crates/sui-benchmark/src/workloads/payload.rs
MallocSizeOf (Interface)
Trait for measuring the "deep" heap usage of a data structure. This is the most commonly-used of the traits. [35 implementers]
crates/mysten-util-mem/src/malloc_size.rs
AUTransactionGen (Interface)
Represents any sort of transaction that can be done in an account universe. [7 implementers]
crates/transaction-fuzzer/src/account_universe.rs
Checkpointed (Interface)
Trait for cursors that have a checkpoint sequence number associated with them. [7 implementers]
crates/sui-graphql-rpc/src/consistency.rs
MetricsCallbackProvider (Interface)
The trait to be implemented when want to be notified about a new request and related metrics around it. When a request i [5 …
crates/mysten-network/src/metrics.rs
PasswordUnlockableAccount (Interface)
(no doc) [8 implementers]
apps/wallet/src/background/accounts/Account.ts

Core symbols most depended-on inside this repo

unwrap
called by 9541
crates/sui-types/src/execution_status.rs
clone
called by 3423
crates/sui-node/src/handle.rs
map
called by 3228
crates/sui/src/client_ptb/error.rs
to_string
called by 2358
external-crates/move/crates/move-cli/src/sandbox/utils/on_disk_state_view.rs
collect
called by 2257
crates/sui-oracle/src/lib.rs
get
called by 1970
sdk/enoki/src/stores.ts
clone
called by 1751
external-crates/move/crates/move-core-types/src/gas_algebra.rs
into
called by 1712
external-crates/move/crates/move-stackless-bytecode/src/access_path.rs

Shape

Method 15,383
Function 9,647
Class 3,853
Enum 936
Interface 636

Languages

Rust88%
TypeScript11%
Python1%

Modules by API surface

external-crates/move/crates/move-model/src/model.rs246 symbols
crates/sui-core/src/authority/authority_per_epoch_store.rs183 symbols
apps/wallet/src/shared/analytics/ampli/index.ts183 symbols
crates/sui-types/src/transaction.rs172 symbols
crates/sui-core/src/authority.rs163 symbols
external-crates/move/crates/move-vm-types/src/values/values_impl.rs154 symbols
crates/typed-store/src/rocks/mod.rs138 symbols
external-crates/move/crates/move-compiler/src/naming/translate.rs131 symbols
external-crates/move/crates/move-compiler/src/expansion/translate.rs129 symbols
external-crates/move/crates/move-compiler/src/parser/syntax.rs128 symbols
external-crates/move/crates/move-analyzer/src/symbols.rs128 symbols
crates/sui-json-rpc-types/src/sui_transaction.rs123 symbols

Datastores touched

sui_indexerDatabase · 1 repos
defaultdbDatabase · 1 repos
diesel_demoDatabase · 1 repos
gegaoDatabase · 1 repos
postgresDatabase · 1 repos
sui_indexer_testnetDatabase · 1 repos

For agents

$ claude mcp add sui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page