⚡ We welcome businesses to test our enterprise-grade service

Method: POST miner_setExtra

dropdown

方法 GETH RPC miner_setExtra 例如 Ethereum (ETH)

POST miner_setExtra

Method not allowed

设置矿工可以在矿工块中包含的额外数据。 这是32个字节的上限。

Parameters

extra - 细绳

额外的数据

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_setExtra",
"params": [null],
"id": "getblock.io"}'


Response

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