Cancel transaction

Creates a transaction for cancelling a pending transaction that had been sent to Kaia with the KAS global fee payer account. To cancel, you need either the nonce or the transaction hash.

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

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

transactionHash
string

Transaction hash value

Responses
200

The request is successful.

400

The request is not valid.

delete/v2/tx
Request samples
application/json
{
  • "from": "0x61fcb6f45c810eb50437c1a6ded6739ae2150501",
  • "nonce": 2375,
  • "gas": 0,
  • "submit": true
}
Response samples
application/json
{
  • "from": "0x61fcb6f45c810eb50437c1a6ded6739ae2150501",
  • "gas": 1000000,
  • "gasPrice": "0x5d21dba00",
  • "nonce": 2375,
  • "rlp": "0x38f86b8209478505d21dba00830f42409461fcb6f45c810eb50437c1a6ded6739ae2150501f847f8458207f5a06ebfa51b8a8b7dc03cb9eecc10adb4f93add77a2a33660d93722078e1eee0849a02f2d5d04d1512895618f17a066494498473332b27b156dee860c4eb0995b4b8b",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0x7a57acaf6060d484ca7d1f0944eb7ffe5c35a294fa8932b553afabdc25417631",
  • "typeInt": 56
}