Get a transaction status
posthttps://api.criptointercambio.com/v2/#getStatusRetrieve an exchange status for a transaction ID from the createTransaction or createFixTransaction response.
info
The getStatus method can be useful for notifying your users or providing additional support.
Request
Header parameters
Requires authentication headers.
Body parameters
Consists of a JSON-RPC 2.0 protocol request object.
The params schema:
| Name | Type | Required | Description |
|---|---|---|---|
id | string | true | The transaction ID. |
Sample request
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"method": "getStatus",
"params": {
"id": "mret********x8l"
}
}
Response
Successful response
Consists of a JSON-RPC 2.0 protocol response object.
The result schema:
| Name | Type | Description |
|---|---|---|
result | string | The transaction status. Possible values. |
Sample successful response
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"result": "hold"
}
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
| Code | Message | Description |
|---|---|---|
-32600 | Error: You reached requests limit {limit} rps | RPS is out of the limit. |
-32602 | Parameter {param} is invalid | The specified request param is invalid. |
-32603 |
| Mostly, this is a technical issue on our side. Requires further investigation. |