> For the complete documentation index, see [llms.txt](https://docs.viction.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.viction.xyz/how-to/how-to-check-if-a-token-is-gas-sponsored-on-viction.md).

# How to check if a token is gas sponsored on Viction

### **Step 1: Check if the Token is in the Sponsor List** <a href="#step-1-check-if-the-token-is-in-the-sponsor-list" id="step-1-check-if-the-token-is-in-the-sponsor-list"></a>

* **Objective:** Verify if the token is eligible for gas sponsorship.
* **Function:** Use the `tokens` function from the [Issuer Contract](https://www.vicscan.xyz/address/0x8c0faeb5c6bed2129b8674f262fd45c4e9468bee#code).

**Steps:**

1. Call the `tokens` function with the token address or identifier.
2. If the token exists in the sponsor list, proceed to Step 2. Otherwise, it is **not sponsored**.

### **Step 2: Check Token Capacity** <a href="#step-2-check-token-capacity" id="step-2-check-token-capacity"></a>

* **Objective:** Determine if the token has remaining gas sponsorship capacity.
* **Function:** Use the `getTokenCapacity` function.

**Steps:**

1. Call `getTokenCapacity` with the token address or identifier.
2. Interpret the response:
   * **If > 0:** Token can sponsor gas.
   * **If = 0:** Token sponsorship is exhausted. Transactions will be failed.

#### **Key Functions:** <a href="#key-functions" id="key-functions"></a>

Simple flow:

1. Call `tokens` to check sponsorship eligibility.
2. If eligible, call `getTokenCapacity` to validate capacity:
   * 0: Sponsored.
   * \= 0: Not sponsored.
3. Cache results for faster future checks.


---

# 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.viction.xyz/how-to/how-to-check-if-a-token-is-gas-sponsored-on-viction.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.
