Global fee delegation account update transaction

Create a transaction that updates Kaia account keys. You can find Kaia account key types in Kaia Docs.

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

The maximum computational units required to execute a transaction (By entering 0, it will be set to default value)

submit
boolean

Shows whether to send the transaction to Kaia

feeRatio
integer <int64> <= 99

The ratio of the gas fee to be delegated. When it's empty or 0, the entire fee will be delegated.

Responses
200

The request is successful.

400

The request is not valid.

put/v2/tx/fd/account
Request samples
application/json
{
  • "from": "0xAE221779273867b9b9a17fF128D8a326622C8D8a",
  • "accountKey": {
    },
  • "nonce": 0,
  • "gas": 0,
  • "submit": true,
  • "feeRatio": 20
}
Response samples
application/json
{
  • "accountKey": "0x01c0",
  • "feePayer": "0x1b71a63903e35371e2fc41c6012effb99b9a2c0f",
  • "feeRatio": 20,
  • "from": "0xae221779273867b9b9a17ff128d8a326622c8d8a",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "nonce": 1,
  • "rlp": "0x22f8cb018505d21dba00830f424094ae221779273867b9b9a17ff128d8a326622c8d8a8201c014f847f8458207f5a06ad279d2a05be1a7ce41f35a55dfcec45141c61ad93c6dca05c6a3784ea53b67a07526be70ca495bb7cc956107900796e6a97886821bfe08dae67e96c114137492941b71a63903e35371e2fc41c6012effb99b9a2c0ff847f8458207f6a05fda6b47a6528a7e87c4b4d0d6811dd762ad8a8e27f52edba853ea997632e04da056d3aa6842f765c53be30b81e78e410759d5bbcd88ccfaab12b578cf9ea66326",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0x13ebee0f1a957e8fbeacf02206918f849fccfad39dde53bd91fc992b64f8cdb0",
  • "typeInt": 34
}