⚡ We welcome businesses to test our enterprise-grade service

Method: POST thetacli.NewKey

dropdown

方法 RPC thetacli.NewKey 例如 Theta

POST thetacli.NewKey

Method not allowed

该API创建一个新帐户(即私钥/addres对),并在〜/.thetacli/keys/keys/egenpted/默认情况下对私钥进行加密。

Parameters

password - 细绳

新帐户的密码。

Request

curl --location --request POST 'https://theta.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "thetacli.NewKey",
"params": {},
"id": "getblock.io"}'


Response

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