---
title: "Create claim funds transaction"
method: POST
path: "/nodes/claim-funds"
tags: ["Nodes"]
---

# Create claim funds transaction

`POST /nodes/claim-funds`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/nodes/claim-funds`
- Auth: none declared
- TypeScript: <https://skmtc.dev/atomaai/apis/atoma-daemon/docs/nodes/claim-funds/post.ts> (a function with typed inputs; its response is checked against the schema)

Claims funds for completed stacks.

## Request body

- NodeClaimFundsRequest: Represents a request to claim funds from a stack. This struct encapsulates the necessary parameters for claiming funds from a stack, including optional gas-related fields.
  - `gas` string: Optional gas object ID. If not provided, the default is `None`.
  - `gas_budget` integer, nullable: Optional gas budget. If not provided, the default is `None`.
  - `gas_price` integer, nullable: Optional gas price. If not provided, the default is `None`.
  - `node_badge_id` string: Optional node badge IDs. If not provided, the default is `None`.
  - `stack_small_ids` integer[], required: The small IDs of the stacks to claim funds from.

## Response `200`

Node claim funds successful

- NodeClaimFundsResponse: Represents a response to a node claim funds request. This struct contains the transaction digest, which is a unique identifier for the transaction associated with the claim funds.
  - `tx_digest` string, required: The associated transaction digest.

## Other responses

- `500`: Failed to submit claim funds

## Changes

- **2024-12-05** `260c4becaf84`: 2 info
  - api tag `Nodes` added
  - api tag `nodes` removed
- **2024-12-04** `69d6e856b1bd`: 2 info
  - api tag `nodes` added
  - api tag `Nodes` removed

[Operation history](https://skmtc.dev/atomaai/apis/atoma-daemon/changes/nodes/claim-funds/post.md)

---

[API](https://skmtc.dev/atomaai/apis/atoma-daemon.md) - [All operations](https://skmtc.dev/atomaai/apis/atoma-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/atomaai/apis/atoma-daemon/revisions/45bb2355d453?raw)
