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.
| Parameter | Type | Required | Description |
|---|---|---|---|
Address | 20-byte address | Yes | The account to unlock. |
Passphrase | String | Yes | The account’s passphrase. |
Duration | Number | No | Seconds 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
}