Personal module

personal_importRawKey

Invocation

{"method":"personal_importRawKey","params":[keyData, passphrase]}

Parameter

Type

Description

keyData

Data

passphrase

String

Returned type

Description

Address

Example request of personal_importRawKey
Example request of personal_importRawKey
curl --data '{"method":"personal_importRawKey","params":[keyData, passphrase],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI personal.importRawKey

personal_listAccounts

Invocation

{"method":"personal_listAccounts","params":[]}

This method doesn't have parameters.

Returned type

Description

Address

Example request of personal_listAccounts
Example request of personal_listAccounts
curl --data '{"method":"personal_listAccounts","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI personal.listAccounts

personal_lockAccount

Invocation

{"method":"personal_lockAccount","params":[address]}

Parameter

Type

Description

address

Address

Returned type

Description

Boolean

Example request of personal_lockAccount
Example request of personal_lockAccount
curl --data '{"method":"personal_lockAccount","params":[address],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI personal.lockAccount

personal_newAccount

Invocation

{"method":"personal_newAccount","params":[passphrase]}

Parameter

Type

Description

passphrase

String

Returned type

Description

Address

Example request of personal_newAccount
Example request of personal_newAccount
curl --data '{"method":"personal_newAccount","params":[passphrase],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI personal.newAccount

personal_unlockAccount

Invocation

{"method":"personal_unlockAccount","params":[address, passphrase]}

Parameter

Type

Description

address

Address

passphrase

String

Returned type

Description

Boolean

Example request of personal_unlockAccount
Example request of personal_unlockAccount
curl --data '{"method":"personal_unlockAccount","params":[address, passphrase],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI personal.unlockAccount