User Fee Delegation account update transaction

Create a transaction for updating the Kaia account key to another key, using user's fee payer account. You can find Kaia account key types in Accounts.

To use this API, you need two x-krn for account-pool and feepayer-pool. The values for x-krn is written separated with a comma, as shown below.

x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}}
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 account 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.

feePayer
required
string

Account address for user Fee Delegation

Responses
200

The request is successful.

400

The request is not valid.

put/v2/tx/fd-user/account
Request samples
application/json
{
  • "from": "0x0301d3417D6b0e35058E52FA9bE9bB6eB9b77218",
  • "accountKey": {
    },
  • "nonce": 0,
  • "gas": 0,
  • "submit": true,
  • "feeRatio": 20,
  • "feePayer": "0x48C71A602AC5284b9A501457e4340E16D8d40C3d"
}
Response samples
application/json
{
  • "accountKey": "0x01c0",
  • "feePayer": "0x0e916319466895015cbcb453a1ff8c4134feb902",
  • "feeRatio": 20,
  • "from": "0x39554b64fd7efdd62707041bbea9ca0fc7e496a8",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "nonce": 2,
  • "rlp": "0x22f8cb028505d21dba00830f42409439554b64fd7efdd62707041bbea9ca0fc7e496a88201c014f847f8458207f5a0c2952a0b7e31e1500f8b54ea5a631394d31ec2baeb8ac20d4c319821d6962755a049672e3a85661941e4ab6a3f0ff6869da9f84ffbf2a16d9cfa21d16baabc15bf940e916319466895015cbcb453a1ff8c4134feb902f847f8458207f5a0cf32e05edf158ea6395270f8fb04dd972cf3fd1ccb80406cdfc100f053ab3383a005d808bfdb365a97346edf57f1a4a142976f196164050e8c1b011ccd5e7f68b8",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0xf4f731fb2aad9be9f4bb41b7a7a0e87b94bf609690b844f74f5f470e3c883f3f",
  • "typeInt": 34
}