Skip to main content

Admin List OTC Transactions

Every accept and cancel attempted on one offer, newest first.

Request

GET /v2/admin/otcs/{otc_id}/transactions

Parameters

NameTypeInDescription
otc_idstringpathRequired. The offer's own ID (24-character hex)
typeintegerqueryOptional. 1 accepts only, 2 cancels only. Omit for both
pageintegerqueryRequired. Page number, minimum 1
per_pageintegerqueryRequired. Items per page, 1–100

Headers

NameTypeDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --location '\{\{baseUrl\}\}/v2/admin/otcs/6a8b5d02f9129816a6cc79f4/transactions?page=1&per_page=20' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Response

{
"data": [
{
"id": "6a8b5e13f9129816a6cc7a12",
"type": 1,
"status": 3,
"hash": "0x9f2c1b...",
"error": null,
"message": null,
"created_at": "2026-08-23T17:43:31.004Z",
"updated_at": "2026-08-23T17:44:01.220Z"
}
],
"total": 1,
"page": 1,
"per_page": 20
}

An offer nobody has acted on answers an empty page, not a refusal — the offer is there and still open.

Response Fields

FieldTypeDescription
data[].idstringThe transaction ID
data[].typeinteger1 accept, 2 cancel
data[].statusinteger1 Started, 2 InProgress, 3 Done, 4 Error, 5 PendingReceipt
data[].hashstringOn-chain transaction hash; filled in on Done, null before
data[].errorstringFailure reason; filled in on Error, null otherwise
data[].messagestringThe reason given when a cancel was issued with one
totalintegerTotal transactions on the offer
pageintegerCurrent page number
per_pageintegerItems per page

Status Codes

Status CodeDescription
200Success - transactions retrieved
400Bad Request - the ID is not a 24-character hex string, or no such offer
401Unauthorized - invalid or missing authentication token
500Internal Server Error

Notes

  • Get OTC Deal Detail embeds only the latest transaction, which is what describes the offer's current state. It cannot show that an accept failed twice before it settled — that is what this listing is for.
  • Scoped by the offer rather than by the token: accept and cancel act on an offer, and a token's own transactions are listed at Get Token Transaction.