From 07a1639e0460ea98c45cff3e99decc163033fdeb Mon Sep 17 00:00:00 2001 From: MadelineMurray <43356962+MadelineMurray@users.noreply.github.com> Date: Thu, 30 Nov 2023 05:52:42 +1000 Subject: [PATCH] Updated miner_setMinPriorityFee param to hex (#1460) * updated miner_setMinPriorityFee param to hex. updated miner_getMinPriorityFee result to a hex string Signed-off-by: madelinemurray * missed string update Signed-off-by: madelinemurray --------- Signed-off-by: madelinemurray --- docs/public-networks/reference/api/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/public-networks/reference/api/index.md b/docs/public-networks/reference/api/index.md index f76d372d9c4..8686b43e25c 100644 --- a/docs/public-networks/reference/api/index.md +++ b/docs/public-networks/reference/api/index.md @@ -5506,7 +5506,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"miner_getMinPriorityFee","params { "jsonrpc": "2.0", "id": 1, - "result": 0x1 + "result": "0x1" } ``` @@ -5567,7 +5567,7 @@ Use [`miner_getMinPriorityFee`](#minergetminpriorityfee) to get the current valu #### Parameters -`minPriorityFeePerGas`: _integer_ - Minimum priority fee per gas +`minPriorityFeePerGas`: _string_ - Minimum priority fee per gas in hexadecimal. #### Returns @@ -5578,7 +5578,7 @@ Use [`miner_getMinPriorityFee`](#minergetminpriorityfee) to get the current valu # curl HTTP request ```bash -curl -X POST --data '{"jsonrpc":"2.0","method":"miner_setMinPriorityFee","params":[1],"id":1}' http://127.0.0.1:8545 +curl -X POST --data '{"jsonrpc":"2.0","method":"miner_setMinPriorityFee","params":["0x0a"],"id":1}' http://127.0.0.1:8545 ``` # wscat WS request @@ -5587,7 +5587,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"miner_setMinPriorityFee","params { "jsonrpc": "2.0", "method": "miner_setMinPriorityFee", - "params": [1], + "params": ["0x0a"], "id": 1 } ```