personal namespace
personal_importRawKey
- Parameters
- Request
- Response
-
keyData
: string (hex data) -
passphrase
: string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "personal_importRawKey",
"params": [keyData, passphrase]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string (address)
personal_listAccounts
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "personal_listAccounts",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: array of string (address)
personal_lockAccount
- Parameters
- Request
- Response
address
: string (address)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "personal_lockAccount",
"params": [address]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: boolean
personal_newAccount
- Parameters
- Request
- Response
passphrase
: string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "personal_newAccount",
"params": [passphrase]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string (address)
personal_unlockAccount
- Parameters
- Request
- Response
-
address
: string (address) -
passphrase
: string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "personal_unlockAccount",
"params": [address, passphrase]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: boolean