> For the complete documentation index, see [llms.txt](https://bohd4nx.gitbook.io/pyfragment/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bohd4nx.gitbook.io/pyfragment/reference/literals.md).

# Literal Types

These literals describe accepted string values for key method parameters.

## ApiProvider

```python
from pyfragment.enums import ApiProvider

ApiProvider.TONAPI    # tonconsole.com — default
ApiProvider.TONCENTER # t.me/toncenter
```

Pass as string to `FragmentClient(api_provider=...)`:

```python
FragmentClient(..., api_provider="tonapi")    # default
FragmentClient(..., api_provider="toncenter")
```

## PaymentMethod

```python
from pyfragment.enums import PaymentMethod

PaymentMethod.GRAM        # GRAM (ex TON) — default
PaymentMethod.USDT_GRAM   # USDT on GRAM (ex TON)
PaymentMethod.USDT_ETH    # USDT on Ethereum
PaymentMethod.USDT_POL    # USDT on Polygon
PaymentMethod.USDC_ETH    # USDC on Ethereum
PaymentMethod.USDC_BASE   # USDC on Base
PaymentMethod.USDC_POL    # USDC on Polygon
```

## WalletVersion

```python
from pyfragment.enums import WalletVersion

WalletVersion.V5R1       # default
WalletVersion.V4R2
WalletVersion.HighloadV2
WalletVersion.HighloadV3R1
```

All enums are exported from both `pyfragment` (top-level) and `pyfragment.enums`.

## Usage notes

* Use `ApiProvider` when configuring the blockchain API provider in `FragmentClient`.
* Use `PaymentMethod` for purchase and giveaway operations.
* Use `WalletVersion` when configuring `FragmentClient`.

**Passing unsupported values raises `ConfigurationError`.**


---

# 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:

```
GET https://bohd4nx.gitbook.io/pyfragment/reference/literals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
