Skip to content
Alchemy Logo

pm_getPaymasterStubData

POST
/{apiKey}
CUs250Throughput CUs100

Returns stub values to be used in paymaster-related fields of an unsigned userOperation for gas estimation.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

objectrequired

Partial UserOperation object (either v0.6, v0.7, or v0.8, missing signature and paymasterData).

stringformat: "^0x[0-9a-fA-F]*$"required

The EntryPoint address the request should be sent through. This MUST be one of the EntryPoints returned by the supportedEntryPoints RPC call and match the version of the userOperation.

stringformat: "^0x[0-9a-fA-F]*$"required

The chain ID of the network the userOperation will be submitted on.

objectrequired

An object containing context. Must include a policyId and may include webhookData.

Responses

200

The response depends on the EntryPoint version used in the request.

Was this page helpful?