dKit by El dorito
  • 🌐Get Started
  • 💰Revenue Generation
  • 🤝Partnerships
  • 📦START HERE
  • Install dKit SDK
  • Set up the SDK
  • Swap
  • DKIT API
    • Introduction
    • /providers - Request supported chains by a swap provider
    • /tokens - Request supported tokens by a swap provider
    • /quote - Request a trade quote
    • /quote - Understanding the response
    • /track - Request the status of a swap
Powered by GitBook
On this page
  • Request Body:
  • Example Request:
  • Response
  • Response Fields:
  1. DKIT API

/track - Request the status of a swap

Previous/quote - Understanding the response

Last updated 3 months ago

The /track endpoint provides real-time status information for a specific transaction. It is particularly useful for tracking the progress and details of swaps, transfers, and other operations. To use this endpoint, you must provide the chain ID and transaction hash. For a complete list of chain IDs used by DoritoKit you can .

Method: POST

URL: https://crunchy.dorito.club/api/track

Request Body:

Field
Type
Description

hash

string

Transaction hash (required)

chainId

string

Chain ID of the transaction (required)

Example Request:

curl -X 'POST' \
  'https://crunchy.dorito.club/api/track' \
  -H 'Content-Type: application/json' \
  -d '{
  "hash": "0x1890aba1c0b25126892af2ab09f5c1bba75adefc47918a96ea498764ab643ce9",
  "chainId": "1"
}'

Response

The response contains detailed information about the transaction status, type, and associated metadata.

Response Fields:

Field
Type
Description

status

string

The status of a transaction (Running or Completed.)

check the table here