Skip to main content
POST
/
registerTxs
Register Transaction
curl --request POST \
  --url https://api-v2.swaps.xyz/api/registerTxs \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "txId": "0x49b1d3d38176e45864fd55500c6c1879ab318609e1ed0c8eb9abd818e6c811fd",
  "vmId": "evm",
  "txHash": "0x62d0e13123852791446c6f923c2d0b9247bda10f1eb5eb48ff5b4bc42d22ab42",
  "chainId": 42161
}'
[
  {
    "success": true,
    "error": null
  }
]

Authorizations

x-api-key
string
header
required

Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063.

Body

application/json
  • Single Transaction · object
  • Multiple Transactions · object[]
txId
string
required

Unique transaction identifier

Example:

"0x49b1d3d38176e45864fd55500c6c1879ab318609e1ed0c8eb9abd818e6c811fd"

vmId
enum<string>
required

Virtual machine identifier.

Available options:
evm,
solana,
alt-vm,
hypercore
txHash
string
required

Transaction hash

Example:

"0x62d0e13123852791446c6f923c2d0b9247bda10f1eb5eb48ff5b4bc42d22ab42"

chainId
integer
required

Chain ID where the transaction occurred

Example:

42161

Response

200 - application/json

Transaction registration results

success
boolean
required

Whether the transaction registration was successful

Example:

true

error
string

Error message if registration failed

Example:

null