📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

Method: POST miner_setGasPrice

dropdown

方法 GETH RPC miner_setGasPrice 例如 Ethereum (ETH)

POST miner_setGasPrice

Method not allowed

开采交易时,设定最低接受的天然气价格。 在采矿过程中排除了低于此限制的任何交易。

Parameters

number - 数字

最低的接受气价

Request

curl --location --request POST 'https://geth.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "miner_setGasPrice",
"params": [null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}