From c6e01f168b5f8bf1199f1b258fb1205af1854adf Mon Sep 17 00:00:00 2001 From: m4sterbunny Date: Wed, 19 Jun 2024 15:44:07 +0100 Subject: [PATCH] 1618 docs adds eth_maxFeePG Signed-off-by: m4sterbunny --- 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..88ea313d947 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 need to provide to be included in a block. + +#### Parameters + +None + +#### Returns + +`result`: _hexidecimal_ 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.