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 response 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
{
"jsonrpc": "2.0",
"result": 0x707fc13c0eb628c074f7ff514ae21acaee0ec072,
"id": 1
}

personal_listAccounts

Invocation
{"method":"personal_listAccounts","params":[]}
Returned type
Description
Address
Example request of personal_listAccounts
Example response of personal_listAccounts
curl --data '{"method":"personal_listAccounts","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{
"jsonrpc": "2.0",
"result": ["0x247b5f5f007fb5d50de13cfcbd4460db21c12bcb","0x707fc13c0eb628c074f7ff514ae21acaee0ec072"],
"id": 1
}

personal_lockAccount

Invocation
{"method":"personal_lockAccount","params":[address]}
Parameter
Type
Description
address
Address
Returned type
Description
Boolean
Example request of personal_lockAccount
Example response of personal_lockAccount
curl --data '{"method":"personal_lockAccount","params":[707Fc13C0eB628c074f7ff514Ae21ACaeE0ec072],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{
"jsonrpc": "2.0",
"result": true,
"id": 1
}

personal_newAccount

Invocation
{"method":"personal_newAccount","params":[passphrase]}
Parameter
Type
Description
passphrase
String
Returned type
Description
Address
Example request of personal_newAccount
Example response of personal_newAccount
curl --data '{"method":"personal_newAccount","params":[testPass],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{
"jsonrpc": "2.0",
"result": 0xfb06d31473545b0e0d62a24e02b266e08523c6a9,
"id": 1
}

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 response 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
{
"jsonrpc": "2.0",
"result": true,
"id": 1
}
Copy link
On this page
personal_importRawKey
personal_listAccounts
personal_lockAccount
personal_newAccount
personal_unlockAccount