POST
/
api
/
v1
/
intents
/
intentStatus
Get Transaction Status
curl --request POST \
  --url https://quotes.eco.com/api/v1/intents/intentStatus \
  --header 'Content-Type: application/json' \
  --data '{
  "intentHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",
  "intentCreatedHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",
  "fulfillmentHash": "0x567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef123456"
}'
{
  "intentHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",
  "status": {
    "status": "Pending",
    "subStatus": "WaitingToFulfill"
  },
  "intentCreated": {
    "chainId": 1,
    "transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",
    "blockExplorerUrl": "https://etherscan.io/tx/0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12"
  },
  "fulfillment": {
    "chainId": 1,
    "transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",
    "blockExplorerUrl": "https://etherscan.io/tx/0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12"
  },
  "refund": {
    "chainId": 1,
    "transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",
    "blockExplorerUrl": "https://etherscan.io/tx/0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12"
  }
}

Body

application/json
intentHash
string

Hash of the intent to query status for

Example:

"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12"

intentCreatedHash
string

Transaction hash of the intent creation transaction

Example:

"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"

fulfillmentHash
string

Transaction hash of the intent fulfillment transaction

Example:

"0x567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef123456"

Response

200 - application/json

Successfully retrieved intent status and transaction details

intentHash
string
required

Hash of the intent being tracked

Example:

"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12"

status
object
required

Current status and sub-status of the intent execution

intentCreated
object
required

Transaction details for when the intent was created

fulfillment
object

Transaction details for when the intent was fulfilled (if completed)

refund
object

Transaction details for when the intent was refunded (if refunded)