Anchoring transaction with global fee delegation

Create a transaction for anchoring blockchain data 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

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

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/anchor
Request samples
application/json
{
  • "from": "0x60d0902c428D0E197F97a756011Fd4893C1E57B0",
  • "input": "0x123",
  • "nonce": 0,
  • "gas": 0,
  • "submit": true
}
Response samples
application/json
{
  • "feePayer": "0x1b71a63903e35371e2fc41c6012effb99b9a2c0f",
  • "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "input": "0x",
  • "nonce": 1415,
  • "rlp": "0x49f8ca8205878505d21dba00830f42409460d0902c428d0e197f97a756011fd4893c1e57b080f847f8458207f6a03918579187602fd744462fffb6e4f85a367599502ce4e2fe9ea5a5b255af530ba0303b05c06b0bdf93dbd83fa9412258720b63c051984c8bb775875f8aaae9f79e941b71a63903e35371e2fc41c6012effb99b9a2c0ff847f8458207f6a0e0dcc9a83503a2475303fcd2f27099b0b0ce33702e4bd7228611d7652191e5d2a036a67fea8ae6e3175c4e32ac97ca266b0998e8acf61f664db5ce713302b8568c",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0xe62c73edc7d80d2275782ddd93988d370996283f1859bef5cad55b78525ac44f",
  • "typeInt": 73
}