Sei JSON-RPC API Reference
Sei's EVM layer provides full compatibility with Ethereum JSON-RPC specification, allowing you to use familiar Ethereum tools and libraries while benefiting from Sei's parallelized execution and sub-second finality.
Base URL
https://api.blockeden.xyz/sei/<your-api-key>
Standard EVM Methods
Account Methods
eth_getBalance
Get the balance of an account at a given block.
Parameters:
address
(string) - 20-byte address to check for balanceblockNumber
(string) - Block number in hex, or "latest", "earliest", "pending"
Returns: Balance in wei as a hex string
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x742D5Cc6bF2442E8C7c74c7b4Be6AB9d6f10f5B4", "latest"],
"id": 1
}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1bc16d674ec80000"
}
eth_getTransactionCount
Get the number of transactions sent from an address (nonce).
Parameters:
address
(string) - 20-byte addressblockNumber
(string) - Block number in hex, or "latest", "earliest", "pending"
Returns: Transaction count as hex string
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": ["0x742D5Cc6bF2442E8C7c74c7b4Be6AB9d6f10f5B4", "latest"],
"id": 1
}'
eth_getCode
Get the code at a given address.
Parameters:
address
(string) - 20-byte addressblockNumber
(string) - Block number in hex, or "latest", "earliest", "pending"
Returns: Code as hex string
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": ["0xA0b86a33E6c0e4A2a2a5FB1C6A6D6a30BF8b6B3a", "latest"],
"id": 1
}'
Block Methods
eth_blockNumber
Get the current block number.
Parameters: None
Returns: Current block number as hex string
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
}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4b7"
}
eth_getBlockByNumber
Get block information by block number.
Parameters:
blockNumber
(string) - Block number in hex, or "latest", "earliest", "pending"fullTransactions
(boolean) - If true, returns full transaction objects; if false, only hashes
Returns: Block object or null
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["latest", true],
"id": 1
}'
eth_getBlockByHash
Get block information by block hash.
Parameters:
blockHash
(string) - 32-byte block hashfullTransactions
(boolean) - If true, returns full transaction objects; if false, only hashes
Returns: Block object or null
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", false],
"id": 1
}'
Transaction Methods
eth_getTransactionByHash
Get transaction information by transaction hash.
Parameters:
transactionHash
(string) - 32-byte transaction hash
Returns: Transaction object or null
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"],
"id": 1
}'
eth_getTransactionReceipt
Get transaction receipt by transaction hash.
Parameters:
transactionHash
(string) - 32-byte transaction hash
Returns: Transaction receipt object or null
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"],
"id": 1
}'
Response Example:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35",
"blockNumber": "0x5bad55",
"contractAddress": null,
"cumulativeGasUsed": "0xb90b0",
"from": "0x398137383b3d25c92898c656696e41950e47316b",
"gasUsed": "0x1383f",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x06012c8cf97bead5deae237070f9587f8e7a266d",
"transactionHash": "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"transactionIndex": "0x41"
}
}
eth_sendRawTransaction
Submit a signed transaction to the network.
Parameters:
signedTransaction
(string) - Signed transaction data as hex string
Returns: Transaction hash
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": ["0xf86c808504a817c800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a04f4c17305743700648bc4f6cd3038ec6f6af0df73e31757d8a17c7e9e1f3c7fd2a053a8ffdc8ab1f4b5a1e4d9b4a2c3a6b4a6e1e8c4b4d6c6d6e1b4a6e1e8c4b4"],
"id": 1
}'
Smart Contract Interaction
eth_call
Execute a smart contract function call without creating a transaction.
Parameters:
callObject
(object) - Call parametersto
(string) - Contract addressdata
(string) - Encoded function call datafrom
(string, optional) - Sender addressgas
(string, optional) - Gas limitgasPrice
(string, optional) - Gas pricevalue
(string, optional) - Value to send
blockNumber
(string) - Block number in hex, or "latest", "earliest", "pending"
Returns: Return value of the call
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"to": "0xA0b86a33E6c0e4A2a2a5FB1C6A6D6a30BF8b6B3a",
"data": "0x70a08231000000000000000000000000742D5Cc6bF2442E8C7c74c7b4Be6AB9d6f10f5B4"
},
"latest"
],
"id": 1
}'
eth_estimateGas
Estimate gas needed for a transaction.
Parameters:
transactionObject
(object) - Transaction parametersto
(string, optional) - Recipient addressfrom
(string, optional) - Sender addressdata
(string, optional) - Transaction datavalue
(string, optional) - Value to sendgas
(string, optional) - Gas limitgasPrice
(string, optional) - Gas price
Returns: Estimated gas amount as hex string
curl -X POST https://api.blockeden.xyz/sei/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": [
{
"to": "0x742D5Cc6bF2442E8C7c74c7b4Be6AB9d6f10f5B4",
"value": "0xde0b6b3a7640000"
}
],
"id": 1
}'