User Fee Delegation anchor transaction

Create a transaction for anchoring the service chain data on the main chain with the user fee payer account.

To use this API, you need two x-krn for account-pool and feepayer-pool. The values for x-krn are 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

input
required
string

Data that is attached to the transaction. Here, it is the data that is being anchored to the main chain.

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

feePayer
required
string

Account address for user Fee Delegation

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.

post/v2/tx/fd-user/anchor
Request samples
application/json
{
  • "from": "0x60d0902c428D0E197F97a756011Fd4893C1E57B0",
  • "input": "0x123",
  • "nonce": 0,
  • "gas": 0,
  • "submit": true,
  • "feePayer": "0x48C71A602AC5284b9A501457e4340E16D8d40C3d"
}
Response samples
application/json
{
  • "feePayer": "0x0e916319466895015cbcb453a1ff8c4134feb902",
  • "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "input": "0x",
  • "nonce": 1447,
  • "rlp": "0x49f8ca8205a78505d21dba00830f42409460d0902c428d0e197f97a756011fd4893c1e57b080f847f8458207f6a084d297dd28ff7d4ec5156fadaa76b56f0e73ed81fbcd1e91c01168df7698bc33a02931a47bb527961bf16f277df03df50615faa15ff3eb41879c54efaac8e99fc4940e916319466895015cbcb453a1ff8c4134feb902f847f8458207f5a07d3aa2c27b3be6e8785564dd242fa067d0aac626b68f98e6c3859f881eb49b35a0130816e9a20efc9d83f85ffed6a7e83df187be400f01b2f69fb391c2e07c01dc",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0x8f90b882f3243f9794419e3207d4ca6b52dc6e5a44e35db54d0bf20bed399794",
  • "typeInt": 73
}