⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins

Method: POST personal_lockAccount

dropdown

# personal_lockAccount example for Ethereum (ETH)

POST personal_lockAccount

Method not allowed

Removes the private key with given address from memory. The account can no longer be used to send transactions.

Parameters

address - string

None

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


Response

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