aa

Get Paymaster Data

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)

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

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.

Example:1
chainSymbolstring

The abbreviated chain name for queries or transactions.

Example:ETH
senderstring required

On-chain wallet address.

Example:0x03D3a52d79eeB5014dFe28258e8c0978Ecd8e65c
noncestring

Anti-replay parameter.

Example:0
initCodestring

The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)

Example:0x
preVerificationGasstring

Gas units to compensate the bundler for pre-verification overhead and calldata encoding, as an integer string (ERC-4337).

Example:53576
verificationGasLimitstring

Maximum gas units for verifying the user operation (signature validation and paymaster logic), as an integer string (ERC-4337).

Example:362451
gasLimitstring

Maximum gas units for the overall user operation execution, as an integer string (ERC-4337).

Example:10000
callGasLimitstring

Maximum gas units for the main execution call of the user operation, as an integer string (ERC-4337).

Example:260611
callDatastring

Encoded data for executing the primary function call or operation within the user's transaction.

Example:0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844
maxPriorityFeePerGasstring

Maximum priority fee (tip) per gas unit in wei to incentivize validators or bundlers, as an integer string (EIP-1559). Example: '1000000000' = 1 gwei.

Example:100000000
maxFeePerGasstring

Maximum total fee per gas unit in wei (base fee + priority fee), as an integer string (EIP-1559). Example: '20000000000' = 20 gwei.

Example:29964445250
paymasterAndDatastring

Address of paymaster sponsoring the transaction, followed by extra data to send to the paymaster. (empty for self-sponsored transaction)

Example:0x
paymasterContractAddressstring required

Address of the contract from where, gas is to be paid.

Example:0xba60b04029be2bfd16d76e70290acfad3a8b582c
mockValidAfterstring required

The UserOp is valid only after this time, to be sent in epoch time format.

Example:0x0
mockValidUntilstring required

The UserOp is valid only up to this time, to be sent in epoch time format.

Example:0x00000000deadbeef

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "paymasterData": "0xba60b04029be2bfd16d76e70290acfad3a8b582c00000000000000000000000000000000000000000000000000000000deadbeef00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "hash": "0x2907ffb2f2320e35a041bd74235caed02f706e3ed4b2308f0a064a1f9e0aac67",
    "mockValidUntil": "0x00000000deadbeef",
    "mockValidAfter": "0x0"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.