pm_getPaymasterStubData

Returns stub values to be used in paymaster-related fields of an unsigned user operation for gas estimation. Accepts an unsigned user operation, an entrypoint address, a chainId, and a context object. Paymaster service providers can define fields that app developers should use in the context object.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
userOperationobjectRequired

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

entryPointstringRequiredformat: "^0[xX][0-9a-fA-F]*$"

The entrypoint address the request should be sent through. Must be one of the entry points returned by the supportedEntryPoints RPC call.

chainIdstringRequiredformat: "^0[xX][0-9a-fA-F]+$"

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

contextobjectRequired

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

Response

The response object may be one of two types: - For entrypoint v0.6: an object with properties paymasterAndData and sponsor. - For entrypoint v0.7: an object with properties paymasterData and sponsor.

entrypointV06ResponseobjectOptional
entrypointV07ResponseobjectOptional