> ## Documentation Index
> Fetch the complete documentation index at: https://loopscale.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Claim Earn Withdrawal

Builds the transactions that claim a filled queued withdrawal, paying the tokens out to the wallet and creating any token accounts it needs.

The claim pays out every fill on the request, which can span more than one token. The request's `fills` on [Get Earn Position](https://loopscale.mintlify.site/api-reference/data/earn/get-earn-position.md) or [Get Earn Withdrawal Queue](https://loopscale.mintlify.site/api-reference/data/earn/get-earn-withdrawal-queue.md) list the per-token amounts; compare them with `payoutMint` to see whether the manager filled in the token the user asked for.

Get `requestId` from the withdraw request response, or from `openWithdrawalRequests[].onChainRequestAddr` on [Get Earn Position](https://loopscale.mintlify.site/api-reference/data/earn/get-earn-position.md). [Get Earn Withdrawal Queue](https://loopscale.mintlify.site/api-reference/data/earn/get-earn-withdrawal-queue.md) shows how much of each request has been filled.

Sign and send `txBase64s` in order as one Jito bundle, as described in [Sending Earn transactions](https://loopscale.mintlify.site/api-reference/transactions/earn/deposit.md#sending-earn-transactions).

## Body

**address** `string` *required*

Earn vault address.

**wallet** `string` *required*

Wallet that opened the request.

**requestId** `string` *required*

Withdrawal request account address.

**providerKind** `string` (default: exponent)

Vault provider. Only `exponent` is supported today.

## Response

Same shape as [Deposit to Earn Vault](https://loopscale.mintlify.site/api-reference/transactions/earn/deposit.md#response), with `action: "withdrawClaim"` and `requestId` echoed back.

```bash Example theme={null}
curl -X POST https://tars.loopscale.com/v1/pandora/earn/vaults/withdraw_claim/tx \
  -H "Content-Type: application/json" \
  -d '{
    "address": "EsTx9ToYW2k1DsTw6ccpmP3RrXQriod114hcM7U5ZKaR",
    "wallet": "<WALLET>",
    "requestId": "<REQUEST_ACCOUNT>"
  }'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.