Global fee delegation contract execution transaction

Create a transaction for executing contracts using KAS global fee payer account.

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 transaction 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

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/contract/execute
Request samples
application/json
{
  • "from": "0x60d0902c428D0E197F97a756011Fd4893C1E57B0",
  • "value": "0x0",
  • "to": "0xabcd",
  • "input": "0x123",
  • "nonce": 0,
  • "gas": 0,
  • "submit": true
}
Response samples
application/json
{
  • "feePayer": "0x1b71a63903e35371e2fc41c6012effb99b9a2c0f",
  • "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "input": "0x",
  • "nonce": 1403,
  • "rlp": "0x31f8e082057b8505d21dba00830f4240949ecbbc2391c7d2cb7471dafa310877fbde528ffa809460d0902c428d0e197f97a756011fd4893c1e57b080f847f8458207f5a04e3a6562928dea493c16b76c2e556e34607bb69b8ea176ce783383cd97f5ee6da033db5adeb92851fb57e2f302551a2a8acb0448c1930441c62674b410baca70fc941b71a63903e35371e2fc41c6012effb99b9a2c0ff847f8458207f6a0d58fd584fc6378c8f80ac45679c36ef5b210cc7e71d798a3029d684e43e131ada0062aa9a9a66b2a63c65ecc48443adbb7e5ac38190bc45ea0c153be0b78b45191",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "to": "0x9ecbbc2391c7d2cb7471dafa310877fbde528ffa",
  • "transactionHash": "0x7ca8932c110d85312ce18ba9b94011df86a156b14e6936efb9f4ea4a6d21e836",
  • "typeInt": 49,
  • "value": "0x0"
}