# Collection Transactions

Collection transaction operations

## Get collection transactions

> Retrieve transactions for a collection

```json
{"openapi":"3.0.3","info":{"title":"Decentraland Referral Service API","version":"1.0.0"},"tags":[{"name":"Collection Transactions","description":"Collection transaction operations"}],"servers":[{"url":"https://rewards.decentraland.org","description":"Production server"},{"url":"https://rewards.decentraland.zone","description":"Development server"},{"url":"http://localhost:8000","description":"Local Development server"}],"security":[],"paths":{"/api/collections/{collection_id}/transactions":{"get":{"tags":["Collection Transactions"],"summary":"Get collection transactions","description":"Retrieve transactions for a collection","parameters":[{"name":"collection_id","in":"path","required":true,"description":"Collection ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Collection transactions","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","required":["id","campaign_id","campaign_address","chain_id","collection_address","nonce","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid","description":"Transaction ID"},"campaign_id":{"type":"string","format":"uuid","description":"Campaign ID"},"campaign_address":{"type":"string","format":"address","description":"Campaign wallet address"},"chain_id":{"type":"string","enum":["1","3","4","5","42","137","80001","80002","11155111"],"description":"Blockchain chain ID"},"collection_address":{"type":"string","format":"address","description":"Collection contract address"},"nonce":{"type":"number","description":"Transaction nonce"},"transaction_hash":{"type":"string","nullable":true,"description":"Blockchain transaction hash"},"status":{"type":"string","enum":["pending","successful","failed","cancelled"],"description":"Transaction status"},"error_code":{"type":"string","nullable":true,"description":"Error code if transaction failed"},"error_message":{"type":"string","nullable":true,"description":"Error message if transaction failed"},"created_at":{"type":"string","format":"date-time","description":"Transaction creation time"},"updated_at":{"type":"string","format":"date-time","description":"Transaction last update time"}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","description":"Whether the request was successful"},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Error code"},"data":{"type":"object","description":"Additional error data"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","description":"Whether the request was successful"},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Error code"},"data":{"type":"object","description":"Additional error data"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","description":"Whether the request was successful"},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Error code"},"data":{"type":"object","description":"Additional error data"}}}}}}}}}}}
```

## Get collection transaction

> Retrieve a specific collection transaction

```json
{"openapi":"3.0.3","info":{"title":"Decentraland Referral Service API","version":"1.0.0"},"tags":[{"name":"Collection Transactions","description":"Collection transaction operations"}],"servers":[{"url":"https://rewards.decentraland.org","description":"Production server"},{"url":"https://rewards.decentraland.zone","description":"Development server"},{"url":"http://localhost:8000","description":"Local Development server"}],"security":[],"paths":{"/api/collections/{collection_id}/transactions/{transaction_id}":{"get":{"tags":["Collection Transactions"],"summary":"Get collection transaction","description":"Retrieve a specific collection transaction","parameters":[{"name":"collection_id","in":"path","required":true,"description":"Collection ID","schema":{"type":"string","format":"uuid"}},{"name":"transaction_id","in":"path","required":true,"description":"Transaction ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Collection transaction","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"data":{"type":"object","required":["id","campaign_id","campaign_address","chain_id","collection_address","nonce","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid","description":"Transaction ID"},"campaign_id":{"type":"string","format":"uuid","description":"Campaign ID"},"campaign_address":{"type":"string","format":"address","description":"Campaign wallet address"},"chain_id":{"type":"string","enum":["1","3","4","5","42","137","80001","80002","11155111"],"description":"Blockchain chain ID"},"collection_address":{"type":"string","format":"address","description":"Collection contract address"},"nonce":{"type":"number","description":"Transaction nonce"},"transaction_hash":{"type":"string","nullable":true,"description":"Blockchain transaction hash"},"status":{"type":"string","enum":["pending","successful","failed","cancelled"],"description":"Transaction status"},"error_code":{"type":"string","nullable":true,"description":"Error code if transaction failed"},"error_message":{"type":"string","nullable":true,"description":"Error message if transaction failed"},"created_at":{"type":"string","format":"date-time","description":"Transaction creation time"},"updated_at":{"type":"string","format":"date-time","description":"Transaction last update time"}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","description":"Whether the request was successful"},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Error code"},"data":{"type":"object","description":"Additional error data"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","description":"Whether the request was successful"},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Error code"},"data":{"type":"object","description":"Additional error data"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","description":"Whether the request was successful"},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Error code"},"data":{"type":"object","description":"Additional error data"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.decentraland.org/apis/apis/rewards/collection-transactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
