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

# Get account sponsorship

> Tells whether the network charges fees, and whether a sponsor pays the gas and the
fees of the account.

- Who may call: anyone, about any account.
- Before: nothing.
- Guarantee: the values come from the engine at the time of the call.

Anafi pays for an owner operation (Safe deploy, Safe relay) only when `feesOn` is
`false` or `sponsored` is `true`. Otherwise the owner sends the transaction. See
[Fees](/concepts/fees).




## OpenAPI

````yaml /api/openapi.yaml get /api/wallets/{aa}/sponsorship
openapi: 3.1.0
info:
  title: Anafi API
  version: 0.3.0
  summary: The public HTTP API of one Anafi network.
  description: >
    The Anafi API is the HTTP surface of one Anafi network. Each network has its
    own host.

    The public TypeScript SDK `@anafi-cc/anafi-sdk` calls these routes for you,
    and it also

    builds and checks the signed and sealed payloads. You can call the routes
    directly.


    - No API key is necessary today.

    - Request and response bodies are JSON, except where an operation says
    otherwise.

    - A route that carries a confidential payload takes an HPKE-sealed envelope.
    Read
      [Sealed requests](/api-reference/sealed-requests) before you call it without the SDK.
    - Read [Introduction](/api-reference/introduction) for formats and
      [Errors](/api-reference/errors) for the error bodies.

    Browser origin: the API hosts answer CORS only for `https://app.ana.fi`
    today. A browser

    page on another origin cannot call the API directly. A server, a script, or
    your own

    same-origin proxy can call it.
servers:
  - url: https://api.polygon.ana.fi
    description: Polygon PoS (chain id 137)
  - url: https://api.xlayer.ana.fi
    description: X Layer (chain id 196)
  - url: https://api.polygon-amoy.ana.fi
    description: Polygon Amoy testnet (chain id 80002)
security: []
tags:
  - name: Accounts
    description: >-
      Find the accounts of an owner address, and deploy the 1-of-1 Safe of an
      owner.
  - name: Safe relay
    description: Submit an owner-signed Safe transaction. Anafi pays the gas.
  - name: Rules
    description: >-
      Stage a sealed rule document. The engine returns the attestation for the
      on-chain commit.
  - name: Confidential channel
    description: >-
      Read back the rule document and the account state of an account through a
      sealed channel.
  - name: Notification email
    description: Verify the email address that rule notifications go to.
  - name: Activity
    description: Read the payments that the engine made for an account.
  - name: Fees
    description: Read the fee terms of the network and the sponsorship of an account.
  - name: Payments
    description: Ask for the email receipt of a payment made on the pay page.
  - name: Rule language
    description: >-
      Read the rule language reference, and write a rule document from a
      description.
  - name: Bank payouts
    description: >
      Connect a Safe to Monerium for bank payouts in euro, and read the state of
      the

      connection and of the orders. These routes are served only on
      `polygon-amoy`

      (Monerium sandbox). The `polygon` and `xlayer` hosts answer `404`.
  - name: Status
    description: Check that the Anafi API answers.
paths:
  /api/wallets/{aa}/sponsorship:
    get:
      tags:
        - Fees
      summary: Get account sponsorship
      description: >
        Tells whether the network charges fees, and whether a sponsor pays the
        gas and the

        fees of the account.


        - Who may call: anyone, about any account.

        - Before: nothing.

        - Guarantee: the values come from the engine at the time of the call.


        Anafi pays for an owner operation (Safe deploy, Safe relay) only when
        `feesOn` is

        `false` or `sponsored` is `true`. Otherwise the owner sends the
        transaction. See

        [Fees](/concepts/fees).
      operationId: getWalletSponsorship
      parameters:
        - $ref: '#/components/parameters/AccountPath'
      responses:
        '200':
          description: The sponsorship of the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletSponsorshipResponse'
              example:
                feesOn: true
                sponsored: false
        '400':
          $ref: '#/components/responses/InvalidPathAddress'
        '503':
          description: The engine could not answer. Try again later.
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/PlainTextError'
              example: the sponsor record of this account is unavailable
components:
  parameters:
    AccountPath:
      name: aa
      in: path
      required: true
      description: >-
        The account address (a Safe or a plain address), as `0x` and 40 hex
        digits in any letter case.
      schema:
        $ref: '#/components/schemas/Address'
      example: '0xf9836de53d455019ed985896fce8af80be66b7f9'
  schemas:
    WalletSponsorshipResponse:
      type: object
      required:
        - feesOn
        - sponsored
      properties:
        feesOn:
          type: boolean
          description: >-
            Whether the network adds fees to the payments of accounts with no
            sponsor.
        sponsored:
          type: boolean
          description: >-
            Whether the account has a sponsor. It can be `true` also while fees
            are off.
    PlainTextError:
      type: string
      description: >-
        A short English sentence. Show it or log it. Do not parse it; branch on
        the status code.
    Address:
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
      description: >-
        A 20-byte address as `0x` and 40 hex digits. Requests accept any letter
        case. Responses use lowercase.
      examples:
        - '0xf9836de53d455019ed985896fce8af80be66b7f9'
  responses:
    InvalidPathAddress:
      description: The `aa` path segment is not an address.
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/PlainTextError'
          example: 'Invalid URL: invalid string length'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.