> 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/claim-transactions.md).

# Claim Transactions

Claim transaction operations

## Create claim transaction

> Create a new claim transaction

```json
{"openapi":"3.0.3","info":{"title":"Decentraland Referral Service API","version":"1.0.0"},"tags":[{"name":"Claim Transactions","description":"Claim 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/claim-transactions":{"post":{"tags":["Claim Transactions"],"summary":"Create claim transaction","description":"Create a new claim transaction","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rewards":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Reward IDs to claim"}}}}}},"responses":{"201":{"description":"Claim transaction created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"data":{"type":"object","required":["id","user","chain_id","contract","transaction_payload","transaction_payload_hash","status","rewards","expires_at","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid","description":"Claim Transaction ID"},"user":{"type":"string","format":"address","description":"User address"},"chain_id":{"type":"string","enum":["1","3","4","5","42","137","80001","80002","11155111"],"description":"Blockchain chain ID"},"contract":{"type":"string","format":"address","description":"Contract address"},"transaction_payload":{"type":"string","description":"Transaction payload"},"transaction_payload_hash":{"type":"string","description":"Transaction payload hash"},"status":{"type":"string","enum":["claimed","pending","successful","failed"],"description":"Claim status"},"rewards":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Reward IDs"},"expires_at":{"type":"string","format":"date-time","description":"Claim expiration time"},"created_at":{"type":"string","format":"date-time","description":"Claim creation time"},"updated_at":{"type":"string","format":"date-time","description":"Claim last update time"}}}}}}}},"400":{"description":"Bad request","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"}}}}}},"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"}}}}}},"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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
