Pre-alphaWork in progress
Skip to content

personal_lockAccount ​

Locks an unlocked account in the node’s keystore.

Geth reference · All supported methods

Parameters ​

Parameters are positional, in the order below.

ParameterTypeRequiredDescription
Address20-byte addressYesThe account to lock.

Return value ​

true if the account was locked.

Example ​

Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.

sh
curl -X POST "<gateway-url>/<service-url>" \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"personal_lockAccount","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f"]}'

Illustrative response; values depend on the selected network and request:

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}

Unstoppable Infrastructure.