ltc

Litecoin (LTC)

Method: POST encryptwallet

dropdown
POST

encryptwallet

方法不允许

使用密码加密钱包。

Parameters

passphrase - 字符串,必填

用于加密钱包的密码短语。它必须至少为 1 个字符,但应该很长。

Request

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


Response

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