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

# user_claim

> Claim tokens for the authenticated user

# user\_claim

Claim available tokens for the authenticated user. This method allows users to claim tokens that they are entitled to.

## Method Signature

```typescript theme={null}
user_claim: ActorMethod<[], TokenAmount>
```

## Parameters

This method takes no parameters - it automatically claims tokens for the authenticated caller.

## Response

Returns a `TokenAmount` (bigint) representing the amount of tokens claimed.

```typescript theme={null}
type TokenAmount = bigint
```

The returned value indicates:

* **Positive number**: Amount of tokens successfully claimed
* **Zero (0n)**: No tokens available to claim

## Example Usage

### Basic Claim

```typescript theme={null}
try {
  const claimedAmount = await actor.user_claim();
  
  if (claimedAmount > 0n) {
    console.log(`Successfully claimed ${claimedAmount} tokens`);
  } else {
    console.log("No tokens available to claim");
  }
} catch (error) {
  console.error("Failed to claim tokens:", error);
}
```
