---
title: Fee Sponsorship
description:
  Learn about Solana's fee sponsorship, including how to sponsor fees for other
  users and how to get paid for sponsoring fees.
---

## Overview

Fee sponsorship is a native feature in Solana that allows for one account to pay
transaction fees for another account. This is useful if you want to abstract
away holding SOL from your users or provide a fee-free experience. This is also
often referred to as "gas abstraction" on other blockchains.

## How fee payment works

Every transaction requires a transaction fee, paid in SOL. This fee is paid by
the "fee payer" of the transaction. Any EOA that signs the transaction can be
the fee payer which enables native fee sponsorship or "gas abstraction" for
Solana. This capability extends to all transaction types including token
transfers, DeFi actions, and more. For more information on how fees are
determined see the [Transaction Fees](/docs/core/fees) page.

## How to sponsor fees on a transaction

To sponsor fees for other users, you need to create a transaction with the
`feePayer` field set to the public key of the EOA that will pay the fees. The
following example shows how to transfer a token from one user to another and
sponsor the fees for the transaction.

<CodeTabs storage="fee-sponsorship-ts" flags="r">

```ts !! title="Kit" file=packages/docs-examples/cookbook/transactions/fee-sponsorship/kit.ts#region=sponsor

```

```ts !! title="Legacy" file=packages/docs-examples/cookbook/transactions/fee-sponsorship/legacy.ts#region=sponsor

```

```ts !! title="Legacy Helper" file=packages/docs-examples/cookbook/transactions/fee-sponsorship/legacy-helper.ts#region=sponsor

```

</CodeTabs>

## How to run a fee relayer service

A fee relayer service is a service that allows you to relay transactions for
other users. This is useful if you want to provide an application that removes
the complexity of users having to manage and procure SOL. Kora, by the Solana
Foundation, is a fee relayer service that allows you to relay transactions for
other users. In addition to providing fee sponsorship, it can also accept fee
payment in configured tokens to still be compensated for transaction processing.
More information can be found in the [Kora documentation](/docs/tools/kora).
