> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/apis/apis/rewards/collection-transactions.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
