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

# relayer_getFeeQuote

> Returns a fee quote for a given gas estimate and payment token. Unlike relayer_getFeeData which returns rate information for manual calculation, this method returns the exact fee amount for a specific gas usage.



## OpenAPI

````yaml /gasless-with-relay/relayer-api-endpoints/relay/relayer_getFeeQuote.json post /rpc
openapi: 3.1.0
info:
  title: relayer_getFeeQuote
  version: 1.0.0
servers:
  - url: https://api.gelato.cloud
    description: Mainnet
security: []
paths:
  /rpc:
    post:
      summary: relayer_getFeeQuote
      description: >-
        Returns a fee quote for a given gas estimate and payment token. Unlike
        relayer_getFeeData which returns rate information for manual
        calculation, this method returns the exact fee amount for a specific gas
        usage.
      parameters:
        - name: X-API-Key
          in: header
          required: true
          schema:
            type: string
          description: Gelato API key for authentication.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Request:
      type: object
      required:
        - jsonrpc
        - method
        - params
        - id
      properties:
        id:
          type: number
          default: 1
        jsonrpc:
          type: string
          default: '2.0'
        method:
          type: string
          default: relayer_getFeeQuote
        params:
          $ref: '#/components/schemas/FeeQuoteParams'
    Response:
      type: object
      properties:
        id:
          type: number
          default: 1
        jsonrpc:
          type: string
          default: '2.0'
        result:
          $ref: '#/components/schemas/FeeQuoteResult'
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          default: '2.0'
        id:
          type: number
        error:
          type: object
          properties:
            code:
              type: number
              description: >-
                Error code (-32602: Invalid params, 4100: Unauthorized, 4202:
                Unsupported Payment Token, 4203: Rate Limit Exceeded, 4206:
                Unsupported Chain)
            message:
              type: string
              description: Error message
    FeeQuoteParams:
      type: object
      required:
        - chainId
        - gas
        - token
      properties:
        chainId:
          type: string
          description: Chain ID
          default: '1'
        gas:
          type: string
          description: Estimated gas for the transaction
          default: '150000'
        token:
          type: string
          description: Payment token address (zero address for native token)
          default: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
    FeeQuoteResult:
      type: object
      properties:
        chainId:
          type: string
          description: Chain ID for this quote
          example: '1'
        token:
          type: object
          properties:
            address:
              type: string
              description: Token contract address
              example: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
            decimals:
              type: number
              description: Token decimals
              example: 6
        fee:
          type: string
          description: >-
            Calculated fee in token's smallest unit (e.g., for USDC with 6
            decimals, 5200000 = 5.2 USDC)
          example: '5200000'
        expiry:
          type: number
          description: Unix timestamp when quote expires
          example: 1755917874
        context:
          type: string
          description: Opaque context to include in relayer_sendTransaction
          example: 0x...

````