Skip to main content

Get transactions

posthttps://api.criptointercambio.com/v2/#getTransactions

Retrieves transaction details for a transaction ID from the createTransaction or createFixTransaction response.

info

The getTransactions method can help you improve your user experience with other filters.


Request

Header parameters

Requires authentication headers.

Body parameters

Consists of a JSON-RPC 2.0 protocol request object.

The params schema:

NameTypeRequiredDescription
addressstring or array of stringsfalseThe payin address. The maximum array length is 10.
currencystring or array of stringsfalseThe payin currency ticker. Enter in lowercase. The maximum array length is 10.
extraIdstringfalseThe address additional ID.
idstring or array of stringsfalseThe transaction ID. The maximum array length is 10.
payoutAddressstring or array of stringsfalseThe payout address. The maximum array length is 10.
statusstring or array of stringsfalseThe transaction status. Possible values.
limitintegerfalseThe number of retrieved records. The maximum limit is 100. The default value is 10.
offsetintegerfalseThe records cursor.
sincetimestampfalseThe record filter. Limits results to records with the createdAt greater than or equal to the since.

Sample request

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"method": "getTransactions",
"params": {
"address": "rhL5*************uJaY1T",
"currency": "xrp",
"payoutAddress": "cosmos***********8hz",
"limit": 1,
"since": 1709126365000000
}
}

Response

Successful response

Consists of a JSON-RPC 2.0 protocol response object.

result schema:

NameTypeDescription
amountExpectedFromstringThe amountFrom value from the createTransaction request.
amountExpectedTostringThe amountTo value from the getExchangeAmount response at the moment of the createTransaction calling.
This is the estimated payout amount of currency before withholding the networkFee.
amountFromstringThe actual payin amount.
amountTostringThe actual amount for sending to payoutAddress after the transaction processing.
apiExtraFeestringYour API extra fee in percent.
canPushbooleanIs true if it's possible to push the transaction after it stops.
canRefundbooleanIs true if it's possible to refund the transaction after it stops.
createdAttimestampThe transaction creation time.
currencyTostringThe payout currency ticker.
currencyFromstringThe payin currency ticker.
exchangeFeestringCripto InterCambio fee in percent.
idstringThe transaction ID. Could be used in getStatus method.
moneyReceivedtimestampThe time when Cripto InterCambio received the funds. Equals 0 if Cripto InterCambio has not received the funds yet.
moneySenttimestampThe time when Cripto InterCambio sent the funds to the user. Does not returns if Cripto InterCambio has not sent the funds yet.
networkFeestringThe network fee from a sent amount. Displayed in the payout currency.
ratestringThe current exchange rate.
payinAddressstringThe wallet address for sending coins.
payinConfirmationsstringThe number of payin confirmations.
payinExtraIdstringThe payinAddress extra ID.
Info
If the payinExtraId param returns as not null, the user should send the funds to the payinAddress with the extraId. Otherwise, the user has to get a refund through technical support.
payinExtraIdNamestringThe payinExtraId name. Info
If extra ID is unapplicable, the getTransactions does not retrieve it.
payinHashstringThe payin transaction hash.
payTillstringThe deadline for making the payment. Returns only for fixed-rate transactions.
payoutAddressstringThe wallet address for sending the exchange result.
payoutExtraIdstringThe payoutAddress extra ID.
payoutExtraIdNamestringThe payoutExtraId name. Info
If extra ID is unapplicable, the getTransactions does not retrieve it.
payoutHashstringThe payout transaction hash.
payoutHashLinkstringThe explorer link to the payout transaction.
refundAddressstringThe wallet address for the refund. Required for technical issues during the exchange. The wallet currency must match the from one.
refundExtraIdstringThe refundAddress extra ID.
refundHashstringThe refund transaction hash.
Info
If refundHash is null, the getTransactions does not retrieve it.
refundHashLinkstringThe explorer link to the refund transaction.
Info
If the refundHashLink parameter is null, the getTransactions does not retrieve it.
statusstringThe transaction status. Possible values
totalFeestringThe total fee in the payout currency.
typestringThe transaction type.
Enum: float, fixed.
warning

The trackUrl param is deprecated. Retrieve the actual status data from the getTransactions and getStatus methods.

Sample successful response

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"result": [
{
"amountExpectedFrom": "0",
"amountExpectedTo": "0",
"amountFrom": "56",
"amountTo": "2.807676",
"apiExtraFee": "0.00",
"canPush": false,
"canRefund": false,
"createdAt": 1709126365000000,
"currencyFrom": "xrp",
"currencyTo": "atom",
"id": "hd16********83b4",
"moneyReceived": 1709126605000000,
"moneySent": 1709126822000000,
"networkFee": "0.004424",
"payinAddress": "rhL5*************uJaY1T",
"payinConfirmations": "0",
"payinExtraId": "36*****747",
"payinExtraIdName": "Destination Tag",
"payinHash": "8C2BB5******************54146345",
"payoutAddress": "cosmos***********8hz",
"payoutExtraId": "894*********6261",
"payoutExtraIdName": "Memo",
"payoutHash": "55330***************4F74BD921FF",
"payoutHashLink": "https://atomscan.com/transactions/55330***************4F74BD921FF",
"rate": "0.050341",
"status": "finished",
"type": "float",
"totalFee": null
}
]
}

Error response

Consists of a JSON-RPC 2.0 protocol error response object.

Sample error response

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"error": {
"code": -32600,
"message": "Error: You reached requests limit 10 rps"
}
}

Error codes

CodeMessageDescription
-32600Error: You reached requests limit {limit} rpsRPS is out of the limit.
-32603
  • Internal Error
  • Error
Mostly, this is a technical issue on our side. Requires further investigation.