Pre-alphaWork in progress
Skip to content

personal_unlockAccount ​

Unlocks an account in the node’s keystore so the node can sign with it without a passphrase.

Geth reference · All supported methods

Parameters ​

Parameters are positional, in the order below.

ParameterTypeRequiredDescription
Address20-byte addressYesThe account to unlock.
PassphraseStringYesThe account’s passphrase.
DurationNumberNoSeconds to keep the account unlocked; the node’s default if omitted.

Return value ​

true if the account was unlocked.

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_unlockAccount","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f","<passphrase>",300]}'

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

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

Unstoppable Infrastructure.