Skip to main content
Immutable LogoImmutable Logo
Learn
Build
  • Unity
  • Unreal
  • Typescript
Reference
Tools
  • Overview
  • Immutable zkEVM Faucet
  • Network Status
Blog
v2
  • v2
  • v1
Immutable Hub
Reference Docs
  • Unity SDK Reference
    • Passport
    • Orderbook
    • Marketplace
  • Unreal SDK Reference
    • Passport
    • Orderbook
  • Typescript SDK Reference
    • Passport
    • Orderbook
    • Minting
    • Checkout
    • Blockchain Data
    • JSON-RPC API
      • eth_requestAccounts
      • eth_sendTransaction
      • eth_accounts
      • eth_gasPrice
      • eth_getBalance
      • eth_getStorageAt
      • eth_estimateGas
      • eth_call
      • eth_blockNumber
      • eth_chainId
      • eth_getBlockByHash
      • eth_getBlockByNumber
      • eth_getTransactionByHash
      • eth_getTransactionReceipt
      • eth_getTransactionCount
      • eth_getCode
      • eth_signTypedData_v4
      • personal_sign
    • V1 to V2 Migration Guide
    • V1 SDK Troubleshooting
  • Immutable zkEVM API
    • API Reference
    • API Keys
  • Typescript SDK Reference
  • JSON-RPC API
  • eth_gasPrice
Version: v2

eth_gasPrice

Returns the current gas price in wei.

Params​

This method does not accept any parameters.

Result​

Returns a Promise that resolves with a string containing the current hexadecimal gas price in IMX.

Example​

const gasPrice = await provider.request({ method: 'eth_gasPrice' });
console.log(gasPrice); // ['0x...']
Previous
eth_accounts
Next
eth_getBalance

IMX Whitepaper • IMX Tokenomics • Block Explorer • Careers • Contact Us