Create fee payer account

Creates a Kaia account as a fee payer. It generates a Kaia account address and random private/public key pair, and returns public key and private key ID.
Kaia fee payer account is updated to AccountKeyRoleBased, so it only plays the role of fee delegation. Default value of withoutAccontUpdate field, setting whether the FeePayer has been updated to role-based account, is false, in which case all roles other than RoleFeePayer will be set to AccountKeyFail, putting the FeePayer role in the foreground.

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

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
withoutAccountUpdate
boolean

Whether to update the FeePayer to role-based account

Responses
200

The request is successful.

400

The request is not valid.

post/v2/feepayer
Request samples
application/json
{
  • "withoutAccountUpdate": false
}
Response samples
application/json
{
  • "address": "0xDd3B08d269c5BA292E31050BA8608798D46FC712",
  • "chainId": 1001,
  • "createdAt": 1616044739,
  • "keyId": "krn:1001:wallet:local:feepayer-pool:default:0xaed410828b5ab863b0b13745ac822a3223dcc04b00c47ddee718a1d152400bb3",
  • "krn": "krn:1001:wallet:local:feepayer-pool:default",
  • "publicKey": "0x0424ce526854bd268e7f8a252c56ae0bfd188873032f43f778cd76667fa90491d3190bbbca5222822c0f97d688a8b927c957a7d88c2bd0c166406f97367912bc84",
  • "updatedAt": 1616044739
}