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

btg
Bitcoin Gold (BTG)

Method: POST encryptwallet

dropdown

方法 RPC encryptwallet 例如 Bitcoin Gold (BTG)

POST encryptwallet

Method not allowed

用“密码”对钱包进行加密。 这是第一次加密。

此后,任何与私钥相互作用(例如发送或签名)的调用都需要在拨打这些调用之前设置密码。

为此使用WalletPassphrase呼叫,然后使用Walletlock调用。

如果钱包已经加密,请使用WalletPassPhrasechange调用。

Parameters

passphrase - 字符串,需要

通行短语以对钱包进行加密。 它必须至少1个字符,但应该长。

Request

curl --location --request POST 'https://btg.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"
}