> ## Documentation Index
> Fetch the complete documentation index at: https://seilabs-docs-evm-cookbook.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookbook

> Short recipes for common tasks on Sei: read balances, send SEI, deploy and use tokens, listen to events, sponsor gas, and read price feeds.

Each recipe does one task from start to finish. Most recipes show the same code in viem, ethers, and web3.py. When you pick a library in one code block, every code block on the page switches to that library.

## Networks

| Network | EVM chain ID | HTTP RPC | WebSocket |
| - | - | - | - |
| Sei Mainnet | `1329` (`0x531`) | `https://evm-rpc.sei-apis.com` | `wss://evm-ws.sei-apis.com` |
| Sei Testnet | `1328` (`0x530`) | `https://evm-rpc-testnet.sei-apis.com` | `wss://evm-ws-testnet.sei-apis.com` |

Recipes that send transactions use Sei Testnet. Get testnet SEI from the [faucet](/learn/faucet). The public endpoints have rate limits. For production traffic, use a [dedicated RPC provider](/learn/rpc-providers).

## Client setup

<CardGroup cols={2}>
  <Card title="viem quickstart" icon="code" href="/evm/evm-parity/examples/viem-quickstart">
    Read chain data and send transactions from Node.js with viem.
  </Card>

  <Card title="ethers v6 quickstart" icon="code" href="/evm/evm-parity/examples/ethers-quickstart">
    Read chain data and send transactions with ethers.
  </Card>

  <Card title="Wagmi and React" icon="window" href="/evm/evm-parity/examples/wagmi-react">
    Connect wallets, read chain state, and send transactions in a React dApp.
  </Card>

  <Card title="Python quickstart" icon="terminal" href="/evm/python-quickstart">
    Read chain data and sign transactions with web3.py.
  </Card>
</CardGroup>

## Accounts and transactions

<CardGroup cols={2}>
  <Card title="Read a balance" icon="wallet" href="/evm/cookbook/read-a-balance">
    Read the SEI and ERC-20 balances of any address.
  </Card>

  <Card title="Send SEI" icon="paper-plane" href="/evm/cookbook/send-sei">
    Send SEI to another address and confirm the receipt.
  </Card>

  <Card title="Transaction lifecycle" icon="clock" href="/evm/evm-parity/examples/transaction-lifecycle">
    Send a transaction, wait for the receipt, and decode its logs.
  </Card>

  <Card title="Error handling" icon="triangle-exclamation" href="/evm/evm-parity/examples/error-handling">
    Decode reverts, handle wallet rejections, and recover from RPC errors.
  </Card>

  <Card title="Sponsor gas with Pimlico" icon="gas-pump" href="/evm/cookbook/sponsor-gas-with-pimlico">
    Send from a smart account while a paymaster pays the gas.
  </Card>
</CardGroup>

## Tokens

<CardGroup cols={2}>
  <Card title="Deploy an ERC-20" icon="rocket" href="/evm/cookbook/deploy-an-erc20">
    Deploy an OpenZeppelin token with Foundry, Hardhat, or Remix.
  </Card>

  <Card title="ERC-20 interaction" icon="coins" href="/evm/evm-parity/examples/erc20">
    Read token data, transfer tokens, and manage approvals.
  </Card>

  <Card title="ERC-721 interaction" icon="image" href="/evm/evm-parity/examples/erc721">
    Read NFT ownership and transfer NFTs.
  </Card>

  <Card title="ERC-1155 interaction" icon="layer-group" href="/evm/evm-parity/examples/erc1155">
    Read balances, transfer tokens, and approve operators.
  </Card>
</CardGroup>

## Contracts

<CardGroup cols={2}>
  <Card title="Deploy and verify" icon="shield-check" href="/evm/evm-parity/examples/deploy-verify">
    Deploy any contract and publish its source on Seiscan.
  </Card>

  <Card title="Listen to events" icon="tower-broadcast" href="/evm/cookbook/listen-to-events">
    Stream new events over WebSocket and fetch past events.
  </Card>

  <Card title="Multicall" icon="layer-group" href="/evm/evm-parity/examples/multicall">
    Batch many contract reads into one request.
  </Card>

  <Card title="Read a price feed" icon="chart-line" href="/evm/cookbook/read-a-price-feed">
    Read the SEI/USD price from an oracle and check that it is fresh.
  </Card>
</CardGroup>

## Sei features

<CardGroup cols={2}>
  <Card title="Sei precompiles" icon="hexagon-nodes" href="/evm/evm-parity/examples/sei-precompiles">
    Call staking, governance, and other native features from the EVM.
  </Card>

  <Card title="Pointer contracts" icon="arrow-right-arrow-left" href="/evm/evm-parity/examples/pointer-contracts">
    Use CosmWasm tokens through standard ERC interfaces.
  </Card>
</CardGroup>

To ask for a new recipe, open an issue in the [sei-docs repository](https://github.com/sei-protocol/sei-docs/issues).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.