Develops on Sei V2, a parallelized EVM L1 with native EVM execution, pointer contracts for EVM/CosmWasm interop, associated balances, and precompiles for staking, governance, and IBC.
Ships in sei. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
usei, IBC denoms, and TokenFactory tokens directly. No wrapping required. This is NOT the same as WSEI -- it is the actual native balance.dex module). This is deprecated in favor of standard EVM DEXes like DragonSwap and Yaka Finance. Do NOT build against the native DEX module.paris (no Shanghai-era PUSH0).paris, not shanghai. Sei's EVM does not support the PUSH0 opcode introduced in Shanghai. Set evmVersion: "paris" in your compiler config or deployments will fail with opcode errors.| Property | Value |
|---|---|
| Chain ID (EVM) | 1329 |
| Chain ID (Cosmos) | pacific-1 |
| Currency | SEI (6 decimals for Cosmos, 18 decimals for EVM) |
| Block Time | ~390ms |
| Finality | ~390ms (instant, single-slot) |
| EVM Version | paris (no PUSH0) |
| Consensus | Twin-Turbo (optimistic block processing) |
| URL | Type |
|---|---|
https://evm-rpc.sei-apis.com | EVM JSON-RPC |
wss://evm-ws.sei-apis.com | EVM WebSocket |
https://rest.sei-apis.com | Cosmos REST |
https://rpc.sei-apis.com | Cosmos Tendermint RPC |
https://grpc.sei-apis.com | Cosmos gRPC |
| Explorer | URL |
|---|---|
| Seistream | https://seistream.app |
| Seitrace | https://seitrace.com |
| Seiscan | https://seiscan.app |
| Property | Value |
|---|---|
| Chain ID (EVM) | 1328 |
| Chain ID (Cosmos) | atlantic-2 |
| EVM RPC | https://evm-rpc-testnet.sei-apis.com |
| EVM WebSocket | wss://evm-ws-testnet.sei-apis.com |
| Cosmos REST | https://rest-testnet.sei-apis.com |
| Cosmos RPC | https://rpc-testnet.sei-apis.com |
| Explorer | https://seitrace.com/?chain=atlantic-2 |
| Faucet | https://atlantic-2.app.sei.io/faucet |
| Property | Value |
|---|---|
| Chain ID (EVM) | 713715 |
| Chain ID (Cosmos) | arctic-1 |
| EVM RPC | https://evm-rpc-arctic-1.sei-apis.com |
| Explorer | https://seitrace.com/?chain=arctic-1 |
| Feature | Ethereum | Sei |
|---|---|---|
| Block time | 12s | ~390ms |
| Finality | ~12-18 min | ~390ms (single-slot) |
| Execution model | Sequential | Parallel (optimistic) |
| EVM version | Shanghai+ | paris (no PUSH0) |
| Native denom | ETH (18 decimals) | SEI (18 decimals EVM, 6 decimals Cosmos) |
| Cosmos interop | None | Pointer contracts, precompiles |
| IBC | None | Native via precompile |
| Address format | 0x only | 0x (EVM) + sei1... (Cosmos), linked |
| Storage backend | LevelDB/PebbleDB | SeiDB (optimistic parallel) |
import { defineChain } from "viem";
export const sei = defineChain({
id: 1329,
name: "Sei",
nativeCurrency: { name: "SEI", symbol: "SEI", decimals: 18 },
rpcUrls: {
default: {
http: ["https://evm-rpc.sei-apis.com"],
webSocket: ["wss://evm-ws.sei-apis.com"],
},
},
blockExplorers: {
default: { name: "Seitrace", url: "https://seitrace.com" },
seistream: { name: "Seistream", url: "https://seistream.app" },
},
});
export const seiTestnet = defineChain({
id: 1328,
name: "Sei Testnet",
nativeCurrency: { name: "SEI", symbol: "SEI", decimals: 18 },
rpcUrls: {
default: {
http: ["https://evm-rpc-testnet.sei-apis.com"],
webSocket: ["wss://evm-ws-testnet.sei-apis.com"],
},
},
blockExplorers: {
default: { name: "Seitrace", url: "https://seitrace.com/?chain=atlantic-2" },
},
testnet: true,
});
# foundry.toml
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
evm_version = "paris"
[rpc_endpoints]
sei = "https://evm-rpc.sei-apis.com"
sei_testnet = "https://evm-rpc-testnet.sei-apis.com"
[etherscan]
sei = { key = "${SEITRACE_API_KEY}", chain = 1329, url = "https://seitrace.com/api" }
sei_testnet = { key = "${SEITRACE_API_KEY}", chain = 1328, url = "https://seitrace.com/api?chain=atlantic-2" }
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.24",
settings: {
evmVersion: "paris",
optimizer: { enabled: true, runs: 200 },
},
},
networks: {
sei: {
url: process.env.SEI_RPC_URL || "https://evm-rpc.sei-apis.com",
chainId: 1329,
accounts: [process.env.PRIVATE_KEY!],
},
seiTestnet: {
url: process.env.SEI_TESTNET_RPC_URL || "https://evm-rpc-testnet.sei-apis.com",
chainId: 1328,
accounts: [process.env.PRIVATE_KEY!],
},
},
etherscan: {
apiKey: {
sei: process.env.SEITRACE_API_KEY!,
},
customChains: [
{
network: "sei",
chainId: 1329,
urls: {
apiURL: "https://seitrace.com/api",
browserURL: "https://seitrace.com",
},
},
],
},
};
export default config;
forge create src/MyContract.sol:MyContract \
--rpc-url https://evm-rpc.sei-apis.com \
--private-key $PRIVATE_KEY
forge script script/Deploy.s.sol:DeployScript \
--rpc-url https://evm-rpc.sei-apis.com \
--broadcast \
--slow
npx hardhat run scripts/deploy.ts --network sei
npx hardhat run scripts/deploy.ts --network seiTestnet
forge verify-contract <address> src/MyContract.sol:MyContract \
--chain 1329 \
--verifier etherscan \
--etherscan-api-key $SEITRACE_API_KEY \
--verifier-url https://seitrace.com/api
Sei executes EVM transactions in parallel using optimistic concurrency control. No Solidity changes needed.
| Pattern | Parallelizes Well | Why |
|---|---|---|
Per-user mappings (mapping(address => uint256)) | Yes | Independent storage slots per user |
| ERC-20 transfers between different pairs | Yes | Different balance slots accessed |
| Global counter increment | No | All transactions write same slot |
| AMM swaps on same pool | No | Same reserves storage slot |
| Independent NFT mints with per-user counters | Yes | Avoids shared tokenId counter |
Sei provides precompile contracts for accessing Cosmos-native functionality from Solidity. These are callable like normal contracts but execute native chain logic.
Only CALL is supported for state-changing precompiles. DELEGATECALL and STATICCALL may not work for write operations.
Address: 0x0000000000000000000000000000000000001004
Converts between EVM (0x) and Cosmos (sei1...) address formats.
interface IAddrPrecompile {
function getSeiAddr(address evmAddr) external view returns (string memory);
function getEvmAddr(string memory seiAddr) external view returns (address);
}
IAddrPrecompile constant ADDR = IAddrPrecompile(0x0000000000000000000000000000000000001004);
function lookupCosmosAddress(address evmAddr) external view returns (string memory) {
return ADDR.getSeiAddr(evmAddr);
}
function lookupEvmAddress(string calldata seiAddr) external view returns (address) {
return ADDR.getEvmAddr(seiAddr);
}
Address: 0x0000000000000000000000000000000000001005
Delegate, undelegate, and claim staking rewards from EVM contracts.
interface IStaking {
function delegate(string memory validator) external payable returns (bool);
function undelegate(string memory validator, uint256 amount) external returns (bool);
function redelegate(
string memory srcValidator,
string memory dstValidator,
uint256 amount
) external returns (bool);
}
IStaking constant STAKING = IStaking(0x0000000000000000000000000000000000001005);
function stake(string calldata validator) external payable {
bool success = STAKING.delegate{value: msg.value}(validator);
require(success, "Delegation failed");
}
Address: 0x0000000000000000000000000000000000001006
Vote on Cosmos governance proposals from EVM.
interface IGov {
function vote(uint64 proposalId, int32 option) external returns (bool);
function deposit(uint64 proposalId) external payable returns (bool);
}
Vote options: 1 = Yes, 2 = Abstain, 3 = No, 4 = NoWithVeto.
Address: 0x0000000000000000000000000000000000001007
Claim staking rewards.
interface IDistribution {
function withdrawDelegationRewards(string memory validator) external returns (bool);
function setWithdrawAddress(address newAddress) external returns (bool);
}
Address: 0x0000000000000000000000000000000000001009
Transfer tokens cross-chain via IBC directly from EVM contracts.
interface IIBC {
function transfer(
string memory toAddress,
string memory port,
string memory channel,
string memory denom,
uint256 amount,
uint64 revisionNumber,
uint64 revisionHeight,
uint64 timeoutTimestamp
) external returns (bool);
}
IIBC constant IBC = IIBC(0x0000000000000000000000000000000000001009);
function ibcTransfer(
string calldata toAddress,
string calldata channel,
uint256 amount
) external {
// Timeout: 10 minutes from now in nanoseconds
uint64 timeout = uint64(block.timestamp + 600) * 1_000_000_000;
bool success = IBC.transfer(
toAddress,
"transfer",
channel,
"usei",
amount,
0,
0,
timeout
);
require(success, "IBC transfer failed");
}
Address: 0x0000000000000000000000000000000000001003
Parse JSON strings on-chain. Useful for processing CosmWasm query responses in EVM.
interface IJson {
function extractAsBytes(bytes memory input, string memory key) external view returns (bytes memory);
function extractAsBytesList(bytes memory input, string memory key) external view returns (bytes[] memory);
function extractAsUint256(bytes memory input, string memory key) external view returns (uint256);
}
| Precompile | Address | Purpose |
|---|---|---|
| Bank | 0x0000000000000000000000000000000000001001 | Send native Cosmos tokens |
| JSON | 0x0000000000000000000000000000000000001003 | Parse JSON on-chain |
| Address | 0x0000000000000000000000000000000000001004 | Convert EVM <> Cosmos addresses |
| Staking | 0x0000000000000000000000000000000000001005 | Delegate/undelegate/redelegate |
| Governance | 0x0000000000000000000000000000000000001006 | Vote on proposals |
| Distribution | 0x0000000000000000000000000000000000001007 | Claim staking rewards |
| IBC | 0x0000000000000000000000000000000000001009 | Cross-chain IBC transfers |
| Pointer | 0x000000000000000000000000000000000000100b | Query/register pointer contracts |
| Wasm | 0x0000000000000000000000000000000000001002 | Call CosmWasm contracts from EVM |
Pointer contracts are the mechanism for EVM<>CosmWasm token interoperability. They are lightweight proxy contracts that allow a token created in one execution environment to be accessed in the other.
The same works in reverse: an ERC20 can get a pointer CW20.
interface IPointer {
function getPointer(uint16 pointerType, string memory tokenId) external view returns (address, uint16, bool);
}
pointerType values:
0 = ERC20 pointer for a CW20 token1 = ERC721 pointer for a CW721 token2 = CW20 pointer for an ERC20 token3 = CW721 pointer for an ERC721 token4 = ERC20 pointer for a native/IBC denomIPointer constant POINTER = IPointer(0x000000000000000000000000000000000000100b);
// Get the ERC20 address for a CW20 token
function getCW20Pointer(string calldata cw20Addr) external view returns (address) {
(address pointerAddr, , bool exists) = POINTER.getPointer(0, cw20Addr);
require(exists, "Pointer not registered");
return pointerAddr;
}
// Get the ERC20 address for a native Cosmos denom
function getNativeDenomPointer(string calldata denom) external view returns (address) {
(address pointerAddr, , bool exists) = POINTER.getPointer(4, denom);
require(exists, "Pointer not registered");
return pointerAddr;
}
EVM addresses on Sei can hold Cosmos-native tokens (usei, IBC denoms, TokenFactory tokens) directly. These are called "associated balances" because the 0x address is associated with its corresponding sei1... address.
import { createPublicClient, http, parseAbi } from "viem";
import { sei } from "./chains";
const client = createPublicClient({ chain: sei, transport: http() });
const bankAbi = parseAbi([
"function balance(address account, string denom) view returns (uint256)",
"function all_balances(address account) view returns ((uint256, string)[])",
]);
const BANK = "0x0000000000000000000000000000000000001001" as const;
const seiBalance = await client.readContract({
address: BANK,
abi: bankAbi,
functionName: "balance",
args: ["0xYourAddress", "usei"],
});
// seiBalance is in usei (6 decimals on Cosmos side)
interface IBank {
function send(
address fromAddress,
address toAddress,
string memory denom,
uint256 amount
) external returns (bool);
function balance(address account, string memory denom) external view returns (uint256);
}
IBank constant BANK = IBank(0x0000000000000000000000000000000000001001);
The Wasm precompile lets EVM contracts execute and query CosmWasm contracts.
Address: 0x0000000000000000000000000000000000001002
interface IWasm {
function instantiate(
uint64 codeID,
string memory admin,
bytes memory msg,
string memory label,
bytes memory coins
) external returns (string memory contractAddr);
function execute(
string memory contractAddress,
bytes memory msg,
bytes memory coins
) external returns (bytes memory response);
function query(
string memory contractAddress,
bytes memory req
) external view returns (bytes memory response);
}
IWasm constant WASM = IWasm(0x0000000000000000000000000000000000001002);
function queryCosmWasmContract(
string calldata contractAddr,
bytes calldata queryMsg
) external view returns (bytes memory) {
return WASM.query(contractAddr, queryMsg);
}
function executeCosmWasmContract(
string calldata contractAddr,
bytes calldata executeMsg,
bytes calldata coins
) external returns (bytes memory) {
return WASM.execute(contractAddr, executeMsg, coins);
}
SEI has different decimal representations depending on context:
| Context | Denom | Decimals | 1 SEI = |
|---|---|---|---|
| EVM (msg.value, balanceOf) | wei | 18 | 1e18 |
| Cosmos (bank module) | usei | 6 | 1,000,000 |
| Display | SEI | 0 | 1 |
When transferring between EVM and Cosmos contexts, the chain handles decimal conversion automatically. Pointer contracts and precompiles handle the 18<>6 decimal conversion internally.
evmVersion: "paris" -- avoids PUSH0 opcode errorsevmVersion: "paris" in compiler config (no PUSH0)bigint used for all token amounts in TypeScriptmsg.sender used for auth (never tx.origin)| File | Contents |
|---|---|
examples/deploy-contract/README.md | Foundry + Hardhat deploy on Sei |
examples/native-dex-order/README.md | EVM DEX swap on Sei |
examples/evm-cosmwasm-interop/README.md | Pointer contracts, precompile calls |
examples/read-chain-state/README.md | Reading balances, precompile queries, associated balances |
resources/contract-addresses.md | Precompile and token addresses |
resources/error-codes.md | Common errors and fixes |
resources/chain-config.md | Chain IDs, RPCs, explorers |
docs/troubleshooting.md | Common Sei development issues |
templates/sei-client.ts | viem client setup for Sei |
docs/troubleshooting.md (opens in a new tab)examples/deploy-contract/README.md (opens in a new tab)examples/evm-cosmwasm-interop/README.md (opens in a new tab)examples/native-dex-order/README.md (opens in a new tab)examples/read-chain-state/README.md (opens in a new tab)resources/chain-config.md (opens in a new tab)resources/contract-addresses.md (opens in a new tab)resources/error-codes.md (opens in a new tab)templates/sei-client.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/sei:seifrom sei
npx claudepluginhub andresdefi/cryptoskills --plugin sei2 plugins ship this exact skill · first indexed Jul 19, 2026