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

btc
Bitcoin (BTC)

Method: POST keypoolrefill

dropdown

方法 RPC keypoolrefill 例如 Bitcoin (BTC)

POST keypoolrefill

方法不允许

填充密钥池。

如果钱包已加密,则需要使用 walletpassphrase 调用设置钱包密码。

Parameters

newsize - 数字,可选,默认值=100

新的密钥池大小

Request

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


Response

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