> For the complete documentation index, see [llms.txt](https://timelessx.gitbook.io/timeless-x/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://timelessx.gitbook.io/timeless-x/smart-wallet/account-abstraction-101/what-is-paymaster.md).

# What is Paymaster?

The ERC-4337 includes a smart contract specifically designed to manage gas payment policies. This feature allows developers to offer their users gas-free experiences through sponsored transactions or by utilizing ERC-20 tokens to cover gas fees.

These policies introduce versatility in two key aspects:\
\&#xNAN;**(1)** the mode of gas payment, allowing for different currencies to be used\
\&#xNAN;**(2)** identifying who bears the cost of gas, effectively eliminating the need for users to possess native blockchain tokens for blockchain interactions.

Paymasters, a component of this system, empower developers with several capabilities:

1. <mark style="color:blue;">**Sponsoring Gas Fees**</mark><mark style="color:blue;">:</mark> Developers can cover the gas costs for their users, facilitating smoother interactions.
2. <mark style="color:blue;">**Gas Payments in Stablecoins**</mark><mark style="color:blue;">:</mark> This option allows gas fees to be paid using stablecoins, providing a more predictable expense.
3. <mark style="color:blue;">**Gas Payments in Other ERC-20 Tokens**</mark><mark style="color:blue;">:</mark> Developers can enable users to pay gas fees with a variety of ERC-20 tokens, offering greater flexibility.

<figure><img src="/files/RM8hXAXk4j1j4rmtmyl3" alt=""><figcaption><p>Paymaster</p></figcaption></figure>

> **Sources**: [Ethereum](https://eips.ethereum.org/EIPS/eip-4337), [ERC4337.io](https://www.erc4337.io/), [Alchemy](https://www.alchemy.com/learn/account-abstraction)


---

# 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://timelessx.gitbook.io/timeless-x/smart-wallet/account-abstraction-101/what-is-paymaster.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.
