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}}
The request is successful.
The request is not valid.
{- "from": "0x0301d3417D6b0e35058E52FA9bE9bB6eB9b77218",
- "accountKey": {
- "keyType": 1
}, - "nonce": 0,
- "gas": 0,
- "submit": true,
- "feeRatio": 20,
- "feePayer": "0x48C71A602AC5284b9A501457e4340E16D8d40C3d"
}
{- "accountKey": "0x01c0",
- "feePayer": "0x0e916319466895015cbcb453a1ff8c4134feb902",
- "feeRatio": 20,
- "from": "0x39554b64fd7efdd62707041bbea9ca0fc7e496a8",
- "gas": 1000000,
- "gasPrice": "0x5d21dba00",
- "nonce": 2,
- "rlp": "0x22f8cb028505d21dba00830f42409439554b64fd7efdd62707041bbea9ca0fc7e496a88201c014f847f8458207f5a0c2952a0b7e31e1500f8b54ea5a631394d31ec2baeb8ac20d4c319821d6962755a049672e3a85661941e4ab6a3f0ff6869da9f84ffbf2a16d9cfa21d16baabc15bf940e916319466895015cbcb453a1ff8c4134feb902f847f8458207f5a0cf32e05edf158ea6395270f8fb04dd972cf3fd1ccb80406cdfc100f053ab3383a005d808bfdb365a97346edf57f1a4a142976f196164050e8c1b011ccd5e7f68b8",
- "signatures": [
- {
- "R": "0xc2952a0b7e31e1500f8b54ea5a631394d31ec2baeb8ac20d4c319821d6962755",
- "S": "0x49672e3a85661941e4ab6a3f0ff6869da9f84ffbf2a16d9cfa21d16baabc15bf",
- "V": "0x7f5"
}
], - "status": "Submitted",
- "transactionHash": "0xf4f731fb2aad9be9f4bb41b7a7a0e87b94bf609690b844f74f5f470e3c883f3f",
- "typeInt": 34
}