personal_newAccount
Creates a new account in the node’s keystore, encrypted with a passphrase.
Geth reference · All supported methods
Parameters
Parameters are positional, in the order below.
| Parameter | Type | Required | Description |
|---|---|---|---|
Passphrase | String | Yes | Encrypts the new account’s key in the keystore. |
Return value
The new account’s 20-byte address.
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_newAccount","params":["<passphrase>"]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xc94770007dda54cF92009BFF0dE90c06F603a09f"
}