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)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/aa/getpaymasterdata
- AuthAPI key in header X-API-Key
Query parameters
The unique ID to direct queries or transactions to the correct blockchain. Find more here.
The abbreviated chain name for queries or transactions.
On-chain wallet address.
Anti-replay parameter.
The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
Gas units to compensate the bundler for pre-verification overhead and calldata encoding, as an integer string (ERC-4337).
Maximum gas units for verifying the user operation (signature validation and paymaster logic), as an integer string (ERC-4337).
Maximum gas units for the overall user operation execution, as an integer string (ERC-4337).
Maximum gas units for the main execution call of the user operation, as an integer string (ERC-4337).
Encoded data for executing the primary function call or operation within the user's transaction.
Maximum priority fee (tip) per gas unit in wei to incentivize validators or bundlers, as an integer string (EIP-1559). Example: '1000000000' = 1 gwei.
Maximum total fee per gas unit in wei (base fee + priority fee), as an integer string (EIP-1559). Example: '20000000000' = 20 gwei.
Address of paymaster sponsoring the transaction, followed by extra data to send to the paymaster. (empty for self-sponsored transaction)
Address of the contract from where, gas is to be paid.
The UserOp is valid only after this time, to be sent in epoch time format.
The UserOp is valid only up to this time, to be sent in epoch time format.
Response
Successful response
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.