personal_sendAccountUpdate
Validates the given passphrase and submits a TxTypeAccountUpdate transaction. The transaction object must have fields from and key. Other fields such as gas, gasPrice, and nonce are se internally if unspecified. If the passphrase is able to decrypt the private key belonging to tx.from and the transaction is verified, the transaction is signed and submitted onto the network. The account is not unlocked globally in the node and cannot be used in other RPC calls.
JSONRPC: personal_sendAccountUpdate
Request
- application/json
Body
Array [
]
params
undefined[]
required
A transaction object. from and key must be specified.
The passphrase to decrypt the private key of tx.from.
Responses
- 200
Return a transaction hash if succeeded. Otherwise, an error is raised.
- application/json
- Schema
- Example (from schema)
Schema
error
object
a transaction hash if succeeded. Otherwise, an error is raised.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": "0x8474441674cdd47b35b875fd1a530b800b51a5264b9975fb21129eeb8c18582f"
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "personal_sendAccountUpdate",
"id": 1,
"jsonrpc": "2.0",
"params": [
{
"from":"0x1d4e05bb72677cb8fa576149c945b57d13f855e4",
"key":"0x02a102dbac81e8486d68eac4e6ef9db617f7fbd79a04a3b323c982a09cdfc61f0ae0e8"
},
"gr8=B!0@uc$b"
]
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"method": "personal_sendAccountUpdate",
"id": 1,
"jsonrpc": "2.0",
"params": [
{
"from": "0x1d4e05bb72677cb8fa576149c945b57d13f855e4",
"key": "0x02a102dbac81e8486d68eac4e6ef9db617f7fbd79a04a3b323c982a09cdfc61f0ae0e8"
},
"gr8=B!0@uc$b"
]
}'