Base
Base
Base
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
eth_gasPrice returns the node's suggested legacy gas price in wei — a single number that summarizes current Base fee conditions. Base is Coinbase's OP Stack rollup that uses ETH for gas, and L2 fees here are typically a small fraction of Ethereum L1's. Call it at https://base.therpc.io/YOUR_API_KEY (chain ID 8453) when you want a fast read of what a transaction is likely to cost, or to fill the gasPrice field of a legacy (type-0) transaction. It takes no parameters and costs a single CU.
gasPrice field when you build a legacy type-0 transaction for a tool that does not yet support Base's EIP-1559 fields.eth_feeHistory percentiles for a more robust Base fee estimate.هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| string (hex) | Hex-encoded gas price in wei (e.g. "0x4a817c800" = 20 gwei). |
Try it live in the Base playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32603 | Internal error | Node could not estimate current gas price. |
eth_maxPriorityFeePerGas plus eth_feeHistory when you build type-2 transactions.