Core Lane implements standard Ethereum JSON-RPC methods, providing compatibility with existing Ethereum tools and libraries.
Account Methods
eth_getBalance
Returns the balance of the account at the given address.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", "latest"],
"id": 1
}'
Address to check (20-byte hex string with 0x prefix)
Block parameter: “latest”, “earliest”, “pending”, or block number (hex)
Account balance in wei (hex-encoded)
Example Response:
{
"jsonrpc": "2.0",
"result": "0xde0b6b3a7640000",
"id": 1
}
eth_getTransactionCount
Returns the number of transactions sent from an address (nonce).
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", "latest"],
"id": 1
}'
Transaction count (nonce) as hex-encoded integer
Example Response:
{
"jsonrpc": "2.0",
"result": "0x5",
"id": 1
}
eth_getCode
Returns code at a given address.
Core Lane currently returns empty code (0x) as smart contract deployment is not yet supported.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": ["0x0000000000000000000000000000000000000045", "latest"],
"id": 1
}'
Contract bytecode (currently always “0x”)
eth_getStorageAt
Returns the value from a storage position at a given address.
Core Lane currently returns zero storage values as contract storage is not yet supported.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"params": [
"0x0000000000000000000000000000000000000045",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"latest"
],
"id": 1
}'
Storage position (32-byte hex)
Storage value (32-byte hex, currently always zero)
Transaction Methods
eth_sendRawTransaction
Sends a signed transaction to the network.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": ["0x02f8...signed_tx_data..."],
"id": 1
}'
Signed transaction data (hex-encoded with 0x prefix)
Transaction hash (32-byte hex)
Example Response:
{
"jsonrpc": "2.0",
"result": "0x7d2a2c7e2e7c58e7f9e7d2a2c7e2e7c58e7f9e7d2a2c7e2e7c58e7f9e7d2a2c",
"id": 1
}
Depending on node configuration, transactions may be:
- Submitted to Bitcoin DA (if Bitcoin client is configured)
- Forwarded to a sequencer RPC (if
--sequencer-rpc-url is set)
- Submitted to Espresso (if Espresso submit URL is configured)
- Forwarded to upstream Core Lane RPC (in derived mode)
eth_sendTransaction
Sends a transaction from an account (requires unlocked account).
This method is not yet implemented. Use eth_sendRawTransaction with pre-signed transactions instead.
eth_getTransactionByHash
Returns transaction information by hash.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x7d2a2c7e2e7c58e7f9e7d2a2c7e2e7c58e7f9e7d2a2c7e2e7c58e7f9e7d2a2c"],
"id": 1
}'
Transaction hash (32-byte hex)
Transaction object or null if not foundShow Transaction Object Fields
Number of transactions from sender (hex)
Recipient address (or “null” for contract creation)
Transfer value in wei (hex)
Gas price in wei (hex, for Legacy/EIP-2930)
Max fee per gas (hex, for EIP-1559)
Max priority fee per gas (hex, for EIP-1559)
Transaction type: “0x0” (Legacy), “0x1” (EIP-2930), “0x2” (EIP-1559)
Access list (for EIP-2930 and EIP-1559)
eth_getTransactionReceipt
Returns the receipt of a transaction by hash.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x7d2a2c7e2e7c58e7f9e7d2a2c7e2e7c58e7f9e7d2a2c7e2e7c58e7f9e7d2a2c"],
"id": 1
}'
Transaction hash (32-byte hex)
Receipt object or null if not foundShow Receipt Object Fields
Total gas used in block up to this transaction (hex)
Gas used by this transaction (hex)
Actual gas price paid (hex)
Address of created contract (or null)
Bloom filter for logs (256-byte hex)
“0x1” for success, “0x0” for failure
eth_getTransactionByBlockHashAndIndex
Returns transaction information by block hash and transaction index.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockHashAndIndex",
"params": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0x0"
],
"id": 1
}'
Transaction index within block (hex)
Transaction object or null if not found (same format as eth_getTransactionByHash)
eth_getTransactionByBlockNumberAndIndex
Returns transaction information by block number and transaction index.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["latest", "0x0"],
"id": 1
}'
Block number (hex) or “latest”, “earliest”, “pending”
Transaction index within block (hex)
Transaction object or null if not found
Block Methods
eth_blockNumber
Returns the current block number.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Current block number (hex)
Example Response:
{
"jsonrpc": "2.0",
"result": "0x4b7",
"id": 1
}
eth_getBlockByNumber
Returns information about a block by number.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["latest", false],
"id": 1
}'
Block number (hex) or “latest”, “earliest”, “pending”
If true, returns full transaction objects; if false, returns only transaction hashes
Block object or null if not found
Array of transaction hashes or objects
Total gas used in block (hex)
Gas limit for block (hex)
EIP-1559 base fee per gas (hex)
Address that produced the block
Block size estimate (hex)
eth_getBlockByHash
Returns information about a block by hash.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
false
],
"id": 1
}'
If true, returns full transaction objects; if false, returns only transaction hashes
Block object or null if not found (same format as eth_getBlockByNumber)
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": ["latest"],
"id": 1
}'
Block number (hex) or “latest”, “earliest”, “pending”
Network Methods
eth_chainId
Returns the chain ID.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 1
}'
Chain ID: “0x4c616e42” (1281453634 in decimal)
eth_syncing
Returns syncing status.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": 1
}'
false if not syncing, or sync status object if syncing
Block where sync started (hex)
Current block being processed (hex)
Estimated highest block (hex)
net_version
Returns the network ID.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}'
net_listening
Returns whether the node is listening for network connections.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_listening",
"params": [],
"id": 1
}'
net_peerCount
Returns the number of peers connected to the node.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": 1
}'
Peer count (hex, currently always “0x0” as P2P is not yet implemented)
Gas and Fee Methods
eth_gasPrice
Returns the current gas price.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": 1
}'
eth_estimateGas
Estimates the gas needed to execute a transaction.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": [{
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"to": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"value": "0xde0b6b3a7640000"
}],
"id": 1
}'
Transaction call object
Sender address (optional)
Value to transfer (hex, optional)
Transaction data (hex, optional)
Block parameter (optional)
Estimated gas amount (hex, currently returns “0x5208” - 21000 gas)
eth_maxPriorityFeePerGas
Returns the suggested priority fee per gas for EIP-1559 transactions.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}'
Suggested priority fee in wei (hex). Returns 10% of current base fee, minimum 0.1 Gwei
eth_feeHistory
Returns historical gas fee data.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": ["0x4", "latest", [25, 50, 75]],
"id": 1
}'
Number of blocks to retrieve (hex)
Newest block (hex, “latest”, or “pending”)
Array of reward percentiles (0-100, optional)
Fee history data
Oldest block in range (hex)
Array of base fees per gas (hex strings)
Array of gas used ratios (0.0 to 1.0)
Array of percentile rewards (if requested)
Call Methods
eth_call
Executes a call without creating a transaction.
Core Lane supports intent-related calls via this method. See the Core Lane Methods page for intent-specific functionality.
curl -X POST http://127.0.0.1:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [{
"to": "0x0000000000000000000000000000000000000045",
"data": "0x..."
}, "latest"],
"id": 1
}'
Transaction call object
Sender address (optional)
Encoded function call (hex)
Value to send (hex, optional)
Call result (hex-encoded bytes)