Install
Use an isolated virtual environment:Reading chain data
This is the first milestone. It does not need a private key.1329 on Sei Mainnet and 1328 on Sei Testnet.
Try it live
web3.py sends plain JSON-RPC requests internally. These snippets send the same reads to Sei Mainnet, so you do not need Python to run them.
Sending a transaction
This next step requires a funded account. Get testnet SEI from the faucet. Then build the transaction, sign it locally, and broadcast it witheth_sendRawTransaction. Public RPC endpoints do not manage accounts, so you sign the transaction yourself instead of relying on node-managed accounts.
In web3.py v7+, the attribute name is
signed.raw_transaction. In web3.py v6, it is signed.rawTransaction.Reading a contract
Next steps
- viem Quickstart: the TypeScript and Node.js equivalent
- ethers v6 Quickstart: TypeScript with ethers
- Network information: RPC endpoints, chain IDs, and explorers
- Faucet: get testnet SEI