Anchor transaction

Creates a transaction for anchoring service chain data to Kaia main chain.

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

Responses
200

The request is successful.

400

The request is not valid.

post/v2/tx/anchor
Request samples
application/json
{
  • "from": "0xA409364039Ab69B0EdD72F96Bd926E9AAbaF7DA4",
  • "input": "0x123",
  • "nonce": 0,
  • "gas": 0,
  • "submit": true
}
Response samples
application/json
{
  • "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "input": "0x",
  • "nonce": 1390,
  • "rlp": "0x48f86c82056e8505d21dba00830f42409460d0902c428d0e197f97a756011fd4893c1e57b080f847f8458207f6a0218d6c0a47220281018e24d4c544abf8e63a9bc73850f719196fd815bf5830eca058fd8107ff2b3a9ed2190b46aeb704c421af6cc9a55f14e2c0cd1c2140d1dd10",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0x3c02a3abdf2aceb4d2715da59635385f46f94589fe5773f0091d455651f8934d",
  • "typeInt": 72
}