Alchemy Documentation
Website
Roadmap
Dashboard
Search…
👋
Welcome to Alchemy
🚀
Introduction
Why Use Alchemy?
Getting Started
Core Products
Contributing to these Docs
Referral Program
Web3 University
✨
Enhanced APIs
NFT API
Transfers API (Tx History)
Transaction Receipts API
Token API
Parity API
Notify API
Debug API
Trace API
Subscription API (Websockets)
Unstoppable Domains APIs
⛓
Chain APIs
Ethereum API
Ethereum API FAQ
eth_blockNumber - Ethereum
eth_getBlockByHash - Ethereum
eth_getBlockByNumber - Ethereum
eth_getTransactionByHash - Ethereum
eth_getTransactionCount - Ethereum
eth_getTransactionReceipt - Ethereum
eth_getBlockTransactionCountByHash - Ethereum
eth_getTransactionByBlockHashAndIndex - Ethereum
eth_getTransactionByBlockNumberAndIndex - Ethereum
eth_getBlockReceipts - Ethereum
eth_sendRawTransaction - Ethereum
eth_sendPrivateTransaction - Ethereum
eth_getBalance - Ethereum
eth_getCode - Ethereum
eth_getStorageAt - Ethereum
eth_accounts - Ethereum
eth_getProof - Ethereum
eth_call - Ethereum
eth_getLogs - Ethereum
eth_protocolVersion - Ethereum
eth_gasPrice - Ethereum
eth_estimateGas - Ethereum
eth_feeHistory - Ethereum
eth_maxPriorityFeePerGas - Ethereum
eth_chainId - Ethereum
net_version - Ethereum
net_listening - Ethereum
eth_getUncleByBlockNumberAndIndex - Ethereum
eth_getUncleByBlockHashAndIndex - Ethereum
eth_getUncleCountByBlockHash - Ethereum
eth_getUncleCountByBlockNumber - Ethereum
eth_getFilterChanges - Ethereum
eth_getFilterLogs - Ethereum
eth_newBlockFilter - Ethereum
eth_newFilter - Ethereum
eth_newPendingTransactionFilter - Ethereum
eth_uninstallFilter - Ethereum
web3_clientVersion - Ethereum
web3_sha3 - Ethereum
eth_subscribe - Ethereum
eth_unsubscribe - Ethereum
Polygon API
Arbitrum API
Optimism API
Flow Docs
Crypto.org Docs
Feature Support By Chain
📖
Documentation
Changelog
Alchemy Web3.js
Error Reference
Compute Units (CUs)
Throughput (Rate Limits)
Gas Limits for eth_call and eth_estimateGas
🎓
Road to Web3
🎉
Welcome
‼
Important Info
🛠
Weekly Hackathons
🧠
Weekly Learning Challenges
💻
Tutorials
Hello World Smart Contract
How to Code and Deploy a Polygon Smart Contract
How to Create an NFT Tutorial
NFT Minter Tutorial: How to Create a Full Stack DApp
How to Deploy Your Own ERC-20 Token
Integrating Historical Transaction Data into your dApp
Adding notifications for Pending Transactions and Mined Transactions to your dApp
Building a dApp with Real-Time Transaction Notifications
📜
Guides
EIP-1559 Resource and Tutorial Hub
Using WebSockets
Dashboard Walkthrough
Deep Dive into eth_getLogs
How to Speed Up MetaMask Transactions
Alchemy Set-up for Macs
Choosing a Web3 Network
Running an Eth2.0 Staking Node or Validator with Alchemy
Internal Playbook: Upgrading Ethereum Nodes
Debugging CORS problems for end-users
📚
Resources
FAQ
Support
Blockchain 101
Web3 Glossary
Powered By
GitBook
eth_gasPrice - Ethereum
Returns the current price per gas in wei.
If you are curious about the difference in gas price between this method and the
eth gas station
, check out this
GitHub issue
.
Parameters
none
Returns
QUANTITY
- integer of the current gas price in wei.
Example
Request
Curl
Postman
1
curl
https://eth-mainnet.alchemyapi.io/v2/your-api-key
\
2
-X POST
\
3
-H
"Content-Type: application/json"
\
4
-d
'{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":0}'
Copied!
1
URL
:
https://eth-mainnet.alchemyapi.io/v2/your-api-key
2
RequestType
:
POST
3
Body
:
4
{
5
"jsonrpc":"2.0",
6
"method":"eth_gasPrice",
7
"params":[],
8
"id":0
9
}
Copied!
Result
1
{
2
"jsonrpc"
:
"2.0"
,
3
"id"
:
0
,
4
"result"
:
"0x98bca5a00"
5
}
Copied!
Ethereum API
Alchemy Documentation
Previous
eth_protocolVersion - Ethereum
Next
eth_estimateGas - Ethereum
Last modified
11d ago
Copy link
Contents
Parameters
Returns