Skip to main content

Check swap intent status

Checks the current status of a swap intent. Retrieves the intent's lifecycle state, associated transactions, and additional metadata.

HTTP request

GET /v1/intents/{intent_id}

Request

Header parameters

Requires authentication.

Query paramaters

NameTypeRequiredDescription
intent_idStringTrueSwap intent ID.

Body parameters

Doesn't require setting any body parameters.

Sample query

https://defiapi.changelly.com/v1/intents/fe5601fb-60f2-4cb0-8a67-c55bd3640411

Response

Successful response

NameTypeRequiredDescription
intent_idNumberRequiredSwap intent ID.
statusStringRequiredSwap intent status. Possible values.
fromObjectRequiredBase token information.
from.addressStringRequiredPart of the from object. Sender address.
from.txStringOptionalPart of the from object. Sender hash.
from.tx_atStringOptionalPart of the from object. Time of sender hash creation.
from.network_idNumberRequiredPart of the from object. Sender network relation.
from.token_idNumberRequiredPart of the from object. Sender token ID.
from.contract_addressStringRequiredPart of the from object. Sender contract address.
from.decimalsNumberRequiredPart of the from object. Sender token decimals to adjust amount.
from.amountDecimals in stringRequiredPart of the from object. Amount to swap.
toObjectRequiredQuote token information.
to.addressStringRequiredPart of the to object. Receiver address.
to.txStringOptionalPart of the to object. Receiver hash.
to.tx_atStringOptionalPart of the to object. Time of receiver hash creation.
to.network_idNumberRequiredPart of the to object. Network relation.
to.token_idNumberRequiredPart of the to object. Receiver token ID.
to.contract_addressStringRequiredPart of the to object. Receiver contract address.
to.decimalsNumberRequiredPart of the to object. Receiver token decimals to adjust amount.
to.min_amountDecimals in stringRequiredPart of the to object. Minimal quote amount expressed in basis points.
to.max_amountDecimals in stringRequiredPart of the to object. Maximum quote amount expressed in basis points.
to.amount_expectedDecimals in stringRequiredPart of the to object. Expected minimal quote amount expressed in basis points.
to.amountDecimals in stringOptionalPart of the to object. Receiver token amount expressed in basis points.
refundObjectRequiredRefund information.
refund.addressStringOptionalPart of the refund object. Address for potential refund.
refund.txStringOptionalPart of the refund object. Refund address hash.
refund.tx_atStringOptionalPart of the refund object. Time of refund hash creation.
feesObjectOptionalApplied fees for current quote.
fees.changellyObjectOptionalPart of the fees object. Changelly fee information.
fees.changelly.network_idNumberOptionalPart of the fees.changelly object. Network relation.
fees.changelly.contract_addressStringOptionalPart of the fees.changelly object. Token contract address.
fees.changelly.token_idNumberOptionalPart of the fees.changelly object. Token ID.
fees.changelly.decimalsNumberOptionalPart of the fees.changelly object. Token decimals to adjust amount.
fees.changelly.amountDecimals in stringOptionalPart of the fees.changelly object. Changelly fee amount.
fees.changelly.bpsStringOptionalPart of the fees.changelly object. Amount of basis points.
fees.affiliateObjectOptionalPart of the fees object. Affiliate fee information.
fees.affiliate.network_idNumberOptionalPart of the fees.affiliate object. Affiliate network relation.
fees.affiliate.contract_addressStringOptionalPart of the fees.affiliate object. Affiliate token contract address.
fees.affiliate.token_idNumberOptionalPart of the fees.affiliate object. Affiliate token ID.
fees.affiliate.decimalsNumberOptionalPart of the fees.affiliate object. Affiliate token decimals to adjust amount.
fees.affiliate.amountDecimals in stringOptionalPart of the fees.affiliate object. Affiliate fee amount.
fees.affiliate.bpsStringOptionalPart of the fees.affiliate object. Affiliate amount of basis points.
created_atTimestamp (microseconds)RequiredSwap intent creation time.
Sample response
application/json
{
"intent_id": "fe5601fb-60f2-4cb0-8a67-c55bd3640411",
"status": "Deposited",
"from": {
"amount": "10000000",
"address": "0xbe7A42Af09*********8a88c8EE",
"tx": "0x000000000000000000000000000000000000000",
"tx_at": "2026-01-15T12:05:00Z",
"network_id": 1,
"token_id": 1,
"contract_address": "0x000000000000000000000000000000000000000",
"decimals": 6
},
"to": {
"address": "0xac6B52Af09*********8a88c8EE",
"tx": "1x000000000000000000000000000000000000000",
"tx_at": "2026-01-15T12:05:00Z",
"network_id": 2,
"token_id": 4,
"contract_address": "1x000000000000000000000000000000000000000",
"decimals": 18,
"min_amount": "4230589541052713",
"max_amount": "4251848784977602",
"amount_expected": "4251848784977602"
},
"refund": {
"address": "0xc02aaa39************083c756cc2",
"tx": "0x000000000000000000000000000000000000000",
"tx_at": "2026-01-15T12:05:00Z"
},
"fees": {
"changelly": {
"network_id": 1,
"token_id": 78,
"contract_address": "0xc02aaa39************083c756cc2",
"bps": "50",
"amount": "12000000000000",
"decimals": 18
},
"affiliate": {
"network_id": 1,
"token_id": 78,
"contract_address": "0xc02aaa39************083c756cc2",
"bps": "25",
"amount": "6000000000000",
"decimals": 18
}
},
"created_at": 1778856025
}

Error response

Check the error response schema.

Possible swap statuses

The status field represents the overall progress of the swap, combining both intent and swap state.

StatusDescription
CreatedThe intent has been created but no approval has been added yet.
ApprovedUser has added approval/signature for the swap.
VerifiedResolver has accepted the intent and is ready to execute.
FailedThe intent was declined by the resolver.
DepositedResolver has deposited user tokens on source network into the escrow.
FinishedUser has received funds on destination network in target token.
ExpiredThe intent expired before execution.
RefundedTokens have been refunded to the user.