Legacy transaction

Creates a transaction that supports the legacy account (for which the public key is derived from the private key) and transaction formats. All newly created Kaia accounts on KAS are legacy accounts.

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 sender's Kaia account address

value
string

KAIA converted into kei

input
string

Data that is sent along with the transaction and used for the 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

Send or not send the transaction to Kaia

to
string

KAIA receiver's Kaia account address

Responses
200

The request is successful.

400

The request is not valid.

post/v2/tx/legacy
Request samples
application/json
{
  • "from": "0x60d0902c428D0E197F97a756011Fd4893C1E57B0",
  • "value": "0x0",
  • "input": "0x60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000",
  • "nonce": 0,
  • "gas": 0,
  • "submit": true
}
Response samples
application/json
{
  • "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "input": "0x",
  • "nonce": 1376,
  • "rlp": "0xf8558205608505d21dba00830f42408080808207f6a0ddb4fe7dcd0b8adc8a35a4f184e5432c1f84938be50117a177366703e365e150a01dcf2e755836674a4f9de71fb14e40cbd3ab73a373a7f186a895d75251b6f4ae",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0xd0fee21dc7f40d562019cefc3f162961f20ef07da0c24791455530f0009938de",
  • "typeInt": 0,
  • "value": "0x0"
}