Docs

eth_gasPrice - Blast RPC Method

Get current gas price on Blast. Essential for transaction cost estimation for yield-generating dApps, DeFi protocols with built-in returns, and gas-subsidized applications.

Returns the current gas price on Blast in wei.

Why Blast? Build on the only Ethereum L2 with native yield—4% for ETH and 5%+ for stablecoins automatically with $2.5B+ TVL, auto-rebasing ETH and USDB, gas revenue sharing for developers, and Blur-backed ecosystem.

Use Cases

The eth_gasPrice method is essential for:

  • Transaction pricing - Set appropriate gas prices
  • Cost estimation - Calculate transaction costs before sending
  • Gas monitoring - Track network congestion
  • DeFi operations - Optimize costs for yield-generating dApps, DeFi protocols with built-in returns, and gas-subsidized applications

Code Examples

Bash
curl -X POST https://api-blast-mainnet-archive.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_gasPrice",
    "params": [],
    "id": 1
  }'

Error Handling

Error CodeMessageDescription
-32603Internal errorNode error