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
1
curl --data '{"method":"personal_importRawKey","params":[keyData, passphrase],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Copied!
1
{
2
"jsonrpc": "2.0",
3
"result": 0x707fc13c0eb628c074f7ff514ae21acaee0ec072,
4
"id": 1
5
}
Copied!

personal_listAccounts

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

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
1
curl --data '{"method":"personal_lockAccount","params":[707Fc13C0eB628c074f7ff514Ae21ACaeE0ec072],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Copied!
1
{
2
"jsonrpc": "2.0",
3
"result": true,
4
"id": 1
5
}
Copied!

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
1
curl --data '{"method":"personal_newAccount","params":[testPass],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Copied!
1
{
2
"jsonrpc": "2.0",
3
"result": 0xfb06d31473545b0e0d62a24e02b266e08523c6a9,
4
"id": 1
5
}
Copied!

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
1
curl --data '{"method":"personal_unlockAccount","params":[address, passphrase],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Copied!
1
{
2
"jsonrpc": "2.0",
3
"result": true,
4
"id": 1
5
}
Copied!
Last modified 2mo ago