Sei API Quick Start Guide
BlockEden.xyz provides high-performance infrastructure for Sei, the first parallelized EVM blockchain. Access Sei's unique dual-architecture through our enterprise-grade API endpoints with sub-second response times.
What is Sei?
Sei is a parallelized EVM blockchain that combines Ethereum compatibility with Cosmos SDK functionality:
- Sub-second Finality: Fastest transaction confirmation in the industry
- Parallelized Execution: Optimistic parallel processing for maximum throughput
- Dual Architecture: Both EVM (Ethereum) and Cosmos SDK APIs
- High Performance: Thousands of transactions per second
- Full EVM Compatibility: Use existing Ethereum tools and wallets
API Endpoints
BlockEden.xyz supports all Sei API types through our global infrastructure:
Mainnet
- EVM JSON-RPC:
https://api.blockeden.xyz/sei/<your-api-key>
- WebSocket:
wss://api.blockeden.xyz/sei/<your-api-key>
- Cosmos REST:
https://api.blockeden.xyz/sei/<your-api-key>/cosmos/
- Tendermint RPC:
https://api.blockeden.xyz/sei/<your-api-key>/tm/
Quick Start
Step 1: Get Your API Key
- Visit BlockEden.xyz Dashboard
- Create a new API key for Sei
- Select Mainnet
Step 2: Test Connection
EVM JSON-RPC (Ethereum Compatible)
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Cosmos REST API
curl -X GET https://api.blockeden.xyz/sei/<your-api-key>/cosmos/bank/v1beta1/supply
Tendermint RPC
curl -X POST https://api.blockeden.xyz/sei/<your-api-key>/tm \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "status",
"params": [],
"id": 1
}'
Supported API Methods
EVM JSON-RPC Methods
All standard Ethereum JSON-RPC methods are supported:
- Account Methods:
eth_getBalance
,eth_getTransactionCount
,eth_getCode
- Block Methods:
eth_blockNumber
,eth_getBlockByNumber
,eth_getBlockByHash
- Transaction Methods:
eth_sendRawTransaction
,eth_getTransactionReceipt
- Contract Methods:
eth_call
,eth_estimateGas
,eth_getLogs
- Gas Methods:
eth_gasPrice
,eth_feeHistory
,eth_maxPriorityFeePerGas
- Network Methods:
eth_chainId
,net_version
Cosmos REST Endpoints
- Bank Module:
/cosmos/bank/v1beta1/*
- Token balances and transfers - Staking Module:
/cosmos/staking/v1beta1/*
- Validator and delegation info - Governance Module:
/cosmos/gov/v1beta1/*
- Proposals and voting - Distribution Module:
/cosmos/distribution/v1beta1/*
- Rewards and commission - Auth Module:
/cosmos/auth/v1beta1/*
- Account information
Tendermint RPC Methods
- Blockchain Info:
status
,health
,net_info
- Block Data:
block
,block_by_hash
,blockchain
- Transaction Data:
tx
,tx_search
,broadcast_tx_sync
- Consensus:
validators
,consensus_state
Code Examples
JavaScript/TypeScript
// EVM (Ethereum-style) usage
import { ethers } from 'ethers';
const provider = new ethers.JsonRpcProvider('https://api.blockeden.xyz/sei/<your-api-key>');
// Get latest block
const blockNumber = await provider.getBlockNumber();
console.log('Latest block:', blockNumber);
// Get account balance
const balance = await provider.getBalance('0x742D5Cc6bF2442E8C7c74c7b4Be6AB9d6f10f5B4');
console.log('Balance:', ethers.formatEther(balance), 'SEI');
// Cosmos SDK usage
import { StargateClient } from '@cosmjs/stargate';
const client = await StargateClient.connect('https://api.blockeden.xyz/sei/<your-api-key>');
// Get account balance
const balance = await client.getBalance('sei1abc...xyz', 'usei');
console.log('Balance:', balance.amount, balance.denom);
Python
import requests
# EVM JSON-RPC
def get_block_number():
url = "https://api.blockeden.xyz/sei/<your-api-key>"
payload = {
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
response = requests.post(url, json=payload)
return int(response.json()['result'], 16)
# Cosmos REST API
def get_bank_balance(address):
url = f"https://api.blockeden.xyz/sei/<your-api-key>/cosmos/bank/v1beta1/balances/{address}"
response = requests.get(url)
return response.json()