⚡ We welcome businesses to test our enterprise-grade service

Method: POST personal_newAccount

dropdown

方法 GETH RPC personal_newAccount 例如 Ethereum (ETH)

POST personal_newAccount

Method not allowed

生成一个新的私钥,并将其存储在密钥存储目录中。 密钥文件使用给定的密码程序加密。 返回新帐户的地址。

在Geth控制台,NewAccount将在不提供参数时提示使用密码。

Parameters

-

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


Response

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