Skip to main content

Constructing Requests

Option 1: You can use the JSON-RPC playground on the Paymaster page to easily create sample JSON-RPC requests. Option 2: Alternatively, you can construct your own requests by following the below steps:
  1. Go to the JSON-RPC playground on the Paymaster page.
  2. Ensure the correct network in your RPC URL (either base or base-sepolia).
  3. Open a terminal and make your requests based on the supported methods in this API reference page.
AuthenticationFor information on how to authenticate requests to our JSON-RPC APIs, please visit the Client API Key section of our Authentication page.

Bundler Namespace

eth_supportedEntryPoints

This endpoint retrieves an array of supported entry points. Currently, the only supported entrypoint is v0.6 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789. The API credit value of this method is 30.

Request/Response

eth_getUserOperationByHash

This endpoint returns a UserOperation based on the hash returned from eth_sendUserOperation. The API credit value of this method is 30.

Parameters

Returns

Request/Response

eth_getUserOperationReceipt

This endpoint returns a receipt based on the hash returned from eth_sendUserOperation. The API credit value of this method is 30.

Parameters

Returns

eth_sendUserOperation

This endpoint sends a UserOperation for inclusion in the Bundler’s private mempool. The signature must be a valid signature from the smart account. The API credit value of this method is 500.

Parameters

eth_estimateUserOperationGas

This endpoint will estimate the gas values for a UserOperation. The signature field is ignored and can be a dummy value, but is recommended to be of the same size as an actual signature for an accurate estimate. The API credit value of this method is 500.

Parameters

Returns

Paymaster Namespace

pm_getPaymasterStubData

See the ERC-7677 docs for parameters and returns.
The API credit value of this method is 30.

EntryPoint v0.6

pm_getPaymasterData

See the ERC-7677 docs for parameters and returns.
The API credit value of this method is 30.

EntryPoint v0.6

pm_sponsorUserOperation

The API credit value of this method is 500.

pm_getAcceptedPaymentTokens

The API credit value of this method is 30.

pm_getAddressSponsorshipInfo

The API credit value of this method is 30.