Account update transaction

Creates a transaction that updates Kaia account keys. You can find Kaia account key types in Accounts.

If you update the account to Legacy key type (1), you can start using your account once it is enabled. If you update the account to Public key type (2), the account cannot be used within the wallet. To restore your account, use Global Fee Delegation RLP API, or update to legacy externally and before enabling the account. If you update the key to Fail key type (3), the account will automatically be disabled.

Request
Security:
header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
from
required
string

Kaia transaction address to send transaction

EmptyUpdateKeyType (object) or PubkeyUpdateKeyType (object) or MultisigUpdateKeyType (object) or RoleBasedUpdateKeyType (object)
nonce
integer <int64>

Unique identifier for the transactions being sent (By entering 0, the nonce will be automatically determined)

gas
integer <int64>
Default: 1000000

Maximum gas fee to be used for sending the transaction (By entering 0, it will be set to default value))

submit
boolean

Shows whether to send the transaction to Kaia

Responses
200

The request is successful.

400

The request is not valid.

put/v2/tx/account
Request samples
application/json
{
  • "from": "0xEF849f1e6589Fe8054651719083fa6BDa01CfBdF",
  • "accountKey": {
    },
  • "nonce": 0,
  • "gas": 0,
  • "submit": true
}
Response samples
application/json
{
  • "accountKey": "0x02a10204037e014e98d15905d404c06742f78df441c962e4ec58f39b0300b99b411c86",
  • "from": "0xef849f1e6589fe8054651719083fa6bda01cfbdf",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "nonce": 0,
  • "rlp": "0x20f88d808505d21dba00830f424094ef849f1e6589fe8054651719083fa6bda01cfbdfa302a10204037e014e98d15905d404c06742f78df441c962e4ec58f39b0300b99b411c86f847f8458207f6a066791442005f18f99eacc6868f7b6d7c390270ab55d4b6606db5fa85ddfca375a04f1e2e3e6d59dc7a8dbe4bbf56781ea7ebe939b2e78e5de3e4b5872d0382e057",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0xa3a0aa193714b2eb6078fd7e80b2883e994b78c30dbcaef7d22596fb6bba52c1",
  • "typeInt": 32
}