---
title: "Get Paymaster Data"
method: GET
path: "/defi/v1/aa/getpaymasterdata"
tags: ["aa"]
---

# Get Paymaster Data

`GET /defi/v1/aa/getpaymasterdata`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/aa/getpaymasterdata`
- Auth: API key in header `X-API-Key`

This endpoint retrieves the paymaster data necessary for account abstraction. It returns a payload containing the paymasterData, a verification hash, and validity timestamps (mockValidUntil and mockValidAfter) that should be incorporated into user operations.

> 💡 
**Compute Unit Value:** `15` (Fixed)

## Query parameters

- `chainId` '1' | '56' | '43114' | '137' | '250' | '10' | '11155420' | '42161' | '421614' | '25' | '338' | '84532' | '8453' | '43113' | '97' | '80002' | '300' | '324': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
- `chainSymbol` string: The abbreviated chain name for queries or transactions.
- `sender` string, required: On-chain wallet address.
- `nonce` string: Anti-replay parameter.
- `initCode` string: The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
- `preVerificationGas` string: Gas units to compensate the bundler for pre-verification overhead and calldata encoding, as an integer string (ERC-4337).
- `verificationGasLimit` string: Maximum gas units for verifying the user operation (signature validation and paymaster logic), as an integer string (ERC-4337).
- `gasLimit` string: Maximum gas units for the overall user operation execution, as an integer string (ERC-4337).
- `callGasLimit` string: Maximum gas units for the main execution call of the user operation, as an integer string (ERC-4337).
- `callData` string: Encoded data for executing the primary function call or operation within the user's transaction.
- `maxPriorityFeePerGas` string: Maximum priority fee (tip) per gas unit in wei to incentivize validators or bundlers, as an integer string (EIP-1559). Example: '1000000000' = 1 gwei.
- `maxFeePerGas` string: Maximum total fee per gas unit in wei (base fee + priority fee), as an integer string (EIP-1559). Example: '20000000000' = 20 gwei.
- `paymasterAndData` string: Address of paymaster sponsoring the transaction, followed by extra data to send to the paymaster. (empty for self-sponsored transaction)
- `paymasterContractAddress` string, required: Address of the contract from where, gas is to be paid.
- `mockValidAfter` string, required: The UserOp is valid only after this time, to be sent in epoch time format.
- `mockValidUntil` string, required: The UserOp is valid only up to this time, to be sent in epoch time format.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
