curl --request POST \
--url https://api.dkit.xyz/v1/track \
--header 'Content-Type: application/json' \
--data '{
"hash": "0x67d8c9c1c9d0eb6b9c453e9394e11082e03cf85317c2e6bf675de08924624897",
"chainId": "ARB",
"quoteId": "c2b8e017-c695-44fe-adbb-39db625fcee4",
"routeIndex": 0
}'
{
"trackingStatus": "completed",
"quoteInfo": {
"quoteId": "c2b8e017-c695-44fe-adbb-39db625fcee4",
"routeIndex": 0,
"senderAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"recipientAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"provider": "ONEINCH",
"trackParams": {
"hash": "0x67d8c9c1c9d0eb6b9c453e9394e11082e03cf85317c2e6bf675de08924624897",
"chain": "ARB"
}
},
"route": {
"providers": [
"ONEINCH"
],
"sellAsset": "ARB.USDC-0XAF88D065E77C8CC2239327C5EDB3A432268E5831",
"sellAmount": "10",
"buyAsset": "ARB.ARB-0X912CE59144191C1204E64559FE8253A0E49E6548",
"expectedBuyAmount": "28.995421060263166005",
"expectedBuyAmountMaxSlippage": "27.545650",
"sourceAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"destinationAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"estimatedTime": {
"inbound": 0,
"swap": 30,
"outbound": 0,
"total": 30
}
}
}
Track the status of a swap via a route from the quote endpoint.
curl --request POST \
--url https://api.dkit.xyz/v1/track \
--header 'Content-Type: application/json' \
--data '{
"hash": "0x67d8c9c1c9d0eb6b9c453e9394e11082e03cf85317c2e6bf675de08924624897",
"chainId": "ARB",
"quoteId": "c2b8e017-c695-44fe-adbb-39db625fcee4",
"routeIndex": 0
}'
{
"trackingStatus": "completed",
"quoteInfo": {
"quoteId": "c2b8e017-c695-44fe-adbb-39db625fcee4",
"routeIndex": 0,
"senderAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"recipientAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"provider": "ONEINCH",
"trackParams": {
"hash": "0x67d8c9c1c9d0eb6b9c453e9394e11082e03cf85317c2e6bf675de08924624897",
"chain": "ARB"
}
},
"route": {
"providers": [
"ONEINCH"
],
"sellAsset": "ARB.USDC-0XAF88D065E77C8CC2239327C5EDB3A432268E5831",
"sellAmount": "10",
"buyAsset": "ARB.ARB-0X912CE59144191C1204E64559FE8253A0E49E6548",
"expectedBuyAmount": "28.995421060263166005",
"expectedBuyAmountMaxSlippage": "27.545650",
"sourceAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"destinationAddress": "0x817bFA97Cc8E5Bfa499D401f43E3087B07AE96f9",
"estimatedTime": {
"inbound": 0,
"swap": 30,
"outbound": 0,
"total": 30
}
}
}
Successful tracking response
The response is of type object
.