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

# zks_getTestnetPaymaster | zkSync Era

> zkSync Era API method that returns the address of the testnet paymaster. Reference for zks_getTestnetPaymaster on zkSync Era via Chainstack.

zkSync Era API method that returns the address of the testnet paymaster. This paymaster is available on testnets and facilitates transactions where fees can be paid using ERC-20 compatible tokens, enabling developers to test their applications without needing native network tokens for fee payment.

## Parameters

* `none`

## Response

* `result` — the address of the testnet paymaster.

<Note>
  The interactive example fetches the paymaster address from the zkSync Sepolia testnet.
</Note>

## **Use case**

Developers working on DApps for the zkSync network could use the `zks_getTestnetPaymaster` method to configure their applications to use the testnet paymaster for transactions. This allows for seamless testing of fee payments in ERC-20 tokens, enabling broader testing scenarios without the need for acquiring native testnet tokens.


## OpenAPI

````yaml openapi/zksync_node_api/zks_getTestnetPaymaster.json POST /da5f4c6274cd225217d352308a952d2f
openapi: 3.0.0
info:
  title: zkSync JSON-RPC API
  version: 1.0.0
servers:
  - url: https://zksync-sepolia.core.chainstack.com
security: []
paths:
  /da5f4c6274cd225217d352308a952d2f:
    post:
      summary: zks_getTestnetPaymaster | zkSync Era
      operationId: zks_getTestnetPaymaster
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JsonRpcRequestForTestnetPaymaster'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonRpcResponseForTestnetPaymaster'
components:
  schemas:
    JsonRpcRequestForTestnetPaymaster:
      type: object
      required:
        - jsonrpc
        - id
        - method
        - params
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          default: '2.0'
        id:
          type: integer
          example: 1
          default: 1
        method:
          type: string
          example: zks_getTestnetPaymaster
          default: zks_getTestnetPaymaster
        params:
          type: array
          default: []
    JsonRpcResponseForTestnetPaymaster:
      type: object
      required:
        - jsonrpc
        - id
        - result
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          default: '2.0'
        id:
          type: integer
          default: 1
        result:
          type: object
          properties:
            paymasterAddress:
              type: string
              description: The address of the testnet paymaster.

````