From fddfb62fbbe65bf72971329b15ca0bfafafc668e Mon Sep 17 00:00:00 2001 From: m4sterbunny Date: Mon, 24 Jun 2024 08:00:39 +0100 Subject: [PATCH] 1618 docs adds eth_maxFeePG (#1621) * 1618 docs adds eth_maxFeePG Signed-off-by: m4sterbunny * Update index.md proof Signed-off-by: m4sterbunny * Update docs/public-networks/reference/api/index.md proof Co-authored-by: Sally MacFarlane Signed-off-by: m4sterbunny * Update docs/public-networks/reference/api/index.md proof Co-authored-by: Sally MacFarlane Signed-off-by: m4sterbunny --------- Signed-off-by: m4sterbunny Co-authored-by: Sally MacFarlane --- docs/public-networks/reference/api/index.md | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/docs/public-networks/reference/api/index.md b/docs/public-networks/reference/api/index.md index a9dc54c9d6b..bd1c5d456e4 100644 --- a/docs/public-networks/reference/api/index.md +++ b/docs/public-networks/reference/api/index.md @@ -5609,6 +5609,50 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_hashrate","params":[],"id":1 +### `eth_maxPriorityFeePerGas` + +Returns an estimate of how much priority fee, in wei, you can pay to get a transaction included in the current block. + +#### Parameters + +None + +#### Returns + +`result`: _hexadecimal_ value in wei + + + + + +```bash +curl -X POST --data '{"jsonrpc":"2.0","method":"eth_maxPriorityFeePerGas","params":[],"id":1}' http://127.0.0.1:8545 +``` + + + + + +```json +{ "jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1 } +``` + + + + + +```json +{ + "jsonrpc": "2.0", + "id": 1, + "result": "0xf4240" +} +``` + + + + + ### `eth_mining` Whether the client is actively mining new blocks. Besu pauses mining while the client synchronizes with the network regardless of command settings or methods called.