Base
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Base
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
eth_maxPriorityFeePerGas returns the node's suggested priority fee — the miner/sequencer tip — per unit of gas for EIP-1559 transactions, expressed in wei (ETH is the gas token on Base). The value is a heuristic the node derives from recent block history and is meant to be used as the maxPriorityFeePerGas field when assembling a type-2 transaction. Base is an OP Stack rollup with roughly 2-second blocks, so its tips are usually small, but they still climb during bursts of consumer-app and DEX activity. Call it against https://base.therpc.io/YOUR_API_KEY (Base mainnet, chain ID 8453 / 0x2105) with no parameters.
maxPriorityFeePerGas field when building an EIP-1559 transaction to send on Base, pairing it with a base-fee figure from eth_getBlockByNumber or eth_feeHistory.هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| string | Hex-encoded priority fee in wei. This is the node's heuristic — typically derived from recent block history. |
Try it live in the Base playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32000 | method not supported | The connected network does not implement EIP-1559 and does not support this method. |
eth_gasPrice instead.eth_feeHistory with explicit reward percentiles over this single heuristic value.