Execution of transaction with user fee delegation

Create a transaction that executes contracts deployed 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

value
string

KAIA converted into kei

to
required
string

Contract address

input
required
string

Data that is sent along with the transaction and is used for execution.

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/contract/execute
Request samples
application/json
{
  • "from": "0x60d0902c428D0E197F97a756011Fd4893C1E57B0",
  • "value": "0x0",
  • "to": "0x0e8a2e471b40ff8916d8524a52989b65908f5671",
  • "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": 1428,
  • "rlp": "0x31f8e08205948505d21dba00830f4240940e8a2e471b40ff8916d8524a52989b65908f5671809460d0902c428d0e197f97a756011fd4893c1e57b080f847f8458207f6a0843aeb273766369fe527a428c6b415dee78bea1027f565eb81148026f08d17f9a005f4a72de75ee7bd2b43638bcef12457789c5b33fbdb25a97e2c389e57b9ef89940e916319466895015cbcb453a1ff8c4134feb902f847f8458207f5a048824c4d84ef299e9fb40ef2ff6f55e14162e729e4e078b7c5efc22e1ebd505ba022cb5c434254b566d58a327454bf4c2e9c56da1557bdb79459586d6aa0f40731",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "to": "0x0e8a2e471b40ff8916d8524a52989b65908f5671",
  • "transactionHash": "0xd93c078e2449015e96b400574f7adebce3a0a04a89c49142a7d2fdda8e40782c",
  • "typeInt": 49,
  • "value": "0x0"
}