This style guide contains general rules and principles to ensure the documentation is cohesive, useful, and organized.
This documentation strives to be:
The Sei community welcomes members from all walks of life. As such, the documentation should be understandable by anyone, including those who are new to Web3 or non-technical.
The docs should strive to be Jargon Free:
- Advanced terms and concepts, especially Web3 related terms and ideas, should be properly explained.
- Where appropriate, we should provide links to resources that can help the reader understand.
- Acronyms should be spelled out on first use.
Great documentation is simple and to the point. It should aim to convey more meaning with fewer words.
- To be clear and inclusive, avoid using jargon and obscure words where possible.
- Limit the number of clauses in a sentence and make sure that your points are structured.
- Avoid qualifying language, which is
quiteoftencompletelyunnecessary. - Information should be simply organized and easy to find.
Great documentation is self-explanatory. Documentation shouldn't need more documentation to explain itself.
- Aim to provide as much context as possible. Code snippets and diagrams are great ways to illustrate complex concepts and provide examples.
The Sei Docs are structured using Nextra. The documentation is organized into four main sections based on target audience and purpose.
The Learn section contains general information about Sei and its ecosystem. This section is designed to be accessible to everyone, from complete beginners to experienced developers looking to understand Sei's architecture.
Contents include:
- Getting Started: About Sei, user quickstart, chain info, token standards, gas, account linking
- Sei Giga Platform: Overview, technical specs, and developer guide for Sei's next-generation architecture
- Core Architecture: Consensus (Twin Turbo), parallel execution, and storage (SeiDB)
- Network Tools & Providers: Wallets, RPC providers, block explorers, faucet, indexers
- Governance: Overview, proposals, and staking
- Interoperability: EVM ↔ CosmWasm interaction and pointer contracts
- Resources: Hardware wallets, Ledger setup, and brand kit
The EVM section is the primary developer resource for building on Sei. It covers everything needed to develop, deploy, and maintain smart contracts and dApps on Sei's high-performance EVM.
Contents include:
- Essentials: Network information, differences with Ethereum, migration guides
- seid CLI: Installation, querying, and transactions
- Frontend Development: Sei Global Wallet, building frontends
- Smart Contracts: Development with Hardhat/Foundry, contract wizard, debugging, tracing, verification, precompiles
- sei-js Library: External links to sei-js documentation (Scaffold Sei, MCP Server, X402, Ledger)
- Ecosystem Tutorials: Indexers, wallet integrations, bridging, AI tooling, oracles, VRF
- Reference: Transactions, RPC reference, tokens, changelog, ecosystem contracts
- Hardware Wallets: Ledger integration with Ethers
⚠️ Deprecation Notice: Cosmos SDK and CosmWasm functionality will be deprecated in favor of EVM-only. For more details, see SIP-3.
This section contains legacy documentation for Cosmos SDK functionality. New development should focus on the EVM.
The Operate section covers topics related to running Sei infrastructure. This is relevant for node operators, validators, and those looking to contribute to chain infrastructure.
Contents include:
- Node Operations: Overview, Seictl setup, statesync, snapshot sync, node types, troubleshooting, API configuration, validators, oracle price feeder
- Advanced Operations: Configuration & monitoring, RocksDB backend, technical reference
To maximize clarity, we should avoid acronyms and abbreviations where possible, especially for shorter, more ambiguous acronyms:
- Just use 'CosmWasm' instead of 'CW'
However, there are occasions where acronyms might be more easily understandable (e.g., NFT instead of Non-Fungible Token, RPC instead of Remote Procedure Call), or referred to very frequently.
In these cases, we should first use the spelled-out term followed by the shortened form in parentheses:
- Command Line Interface (CLI)
- Ethereum Virtual Machine (EVM)
- Denomination (Denom)
On subsequent occurrences in the same topic, we can then use the acronym.
You can add links to text using the following syntax:
[text_to_highlight](link)Some examples:
- Link to section of same document.
[same document](#style-guidelines)- Link to another document.
[another document](/learn)- Link to section of another document.
[section of another document](/learn#getting-started)- External Link.
[Link](https://dashboard.sei.io)Sentence ending punctuation should always be included outside the link.
Links should be as descriptive as possible to let the reader know where they are going.
- Bad Example: Interested to learn more about staking? Click here to find out more
- Better Example: Interested to learn more about staking? Refer to our staking guide to find out more!
Code should either be specified as inline
Code should either be specified as `inline`Or within code blocks.
const codeBlockString = 'codeBlock';```ts copy
const codeBlockString = 'codeBlock';
```Inline Code should be used when referring to:
- File and directory names (e.g.,
./content/evm/networks.mdx) - References to variables in code (e.g.,
codeBlockString) - CLI commands (e.g.,
seid) - Contract addresses or hashes
Code Blocks should be used when:
- Sharing code snippets
const deployContract = async () => {
const factory = new ethers.ContractFactory(abi, bytecode, signer);
const contract = await factory.deploy();
await contract.waitForDeployment();
return contract;
};- Scripts that users should copy and execute directly
git clone https://github.com/sei-protocol/sei-chain
cd sei-chain
git checkout v6.2.6
make installWhen code blocks are used, they should always be prettified by specifying the language. For example:
TypeScript code block labelled with 'ts'
```ts copy
const variable = value;
```
Bash command line code block labelled with 'sh'
```sh copy
seid version
```
Solidity code block labelled with 'solidity'
```solidity copy
contract MyToken is ERC20 {
constructor() ERC20("MyToken", "MTK") {}
}
```When writing code blocks, avoid:
- Creating large code blocks. Break your code into smaller, more digestible pieces.
- Writing too much documentation in between lines. If necessary, break the code block up and add text to explain each code block instead.
For tutorials, the goal should be to write code blocks that can be directly copied and used by the reader.
Remember, code is used to elaborate or provide an example—make your point clearly first before using code to substantiate it!
Headings should be used to denote the start of each section. There are 4 levels of headings that correspond to different sizes (avoid using anything more than level 4 headings):
# Page Title
## Main Topic(s) on page
### Sub Topics
#### Use only if more requiredHeading levels should never be skipped. A level 2 heading should follow a level 1 heading, and a level 3 heading should follow a level 2 heading, etc.
To use images, first add them to the ./public/assets folder.
Then reference them using absolute paths with standard Markdown image syntax:
{/* For images with captions, use:
Your caption here
*/}
Use callouts to highlight important information. The documentation supports various callout types:
<Callout type="info">Informational callout for additional context.</Callout>
<Callout type="warning">Warning callout for important caveats or gotchas.</Callout>
<Callout type="error">Error callout for critical information or deprecation notices.</Callout>Use tables for comparing features, listing network information, or presenting structured data:
| Feature | Sei EVM | Ethereum |
| ---------- | ---------- | ------------- |
| Block Time | 400 ms | 12-14 seconds |
| Throughput | 100 MGas/s | 3 MGas/s |When referencing network information, always include:
- Chain ID (both decimal and hex format where applicable)
- RPC URLs
- Explorer links
Example:
| Network | Chain ID | RPC URL |
|---|---|---|
| Mainnet (pacific-1) | 1329 (0x531) | https://evm-rpc.sei-apis.com |
| Testnet (atlantic-2) | 1328 (0x530) | https://evm-rpc-testnet.sei-apis.com |