POST
https://zksync-sepolia.core.chainstack.com
/
da5f4c6274cd225217d352308a952d2f
curl --request POST \
  --url https://zksync-sepolia.core.chainstack.com/da5f4c6274cd225217d352308a952d2f \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "zks_getTestnetPaymaster",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "paymasterAddress": "<string>"
  }
}

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.

Get your own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none

Response

  • result — the address of the testnet paymaster.

The interactive example fetches the paymaster address from the zkSync Sepolia testnet.

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.

Body

application/json

Response

200 - application/json

Successful response

The response is of type object.