zks_getTestnetPaymaster | zkSync Era

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.


  • none


  • 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.

Try the zks_getTestnetPaymaster RPC method yourself

Click Try It! to start a request and see the response here!