DASH
POST
GET
Last updated on January 1, 1970
1 min read
Method encryptwallet undefined ()
connect with JSON-RPC protocol
encryptwallet
Method not allowed
Encrypts the wallet with a passphrase. This is only to enable encryptionfor the first time. After encryption is enabled, you will need to enterthe passphrase to use private keys.if using this RPC on the command line, remember that your shell probablysaves your command lines (including the value of the passphraseparameter). In addition, there is no RPC to completely disableencryption. If you want to return to an unencrypted wallet, you mustcreate a new wallet and restore your data from a backup made with thedumpwallet RPC.
Parameters
Passphrase
- string
The passphrase to use for the encrypted wallet. Must be at least one character.
Request
curl --location --request POST 'https://dash.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"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }