Skip to content

Latest commit

 

History

History
45 lines (43 loc) · 3.16 KB

File metadata and controls

45 lines (43 loc) · 3.16 KB
  • userOperation: (object) - The user operation object containing the following fields:

    • sender: (string) - The address of the account making the operation.
    • nonce: (string) - The account nonce.
    • factory: (string) [optional] - The factory contract address that will deploy the smart account if it doesn't exist yet.
    • factoryData: (string) [optional] - The data passed to the factory contract to deploy the smart account.
    • callData: (string) - The data to pass to the sender during the main execution call.
    • callGasLimit: (string) - The amount of gas to allocate the main execution call.
    • verificationGasLimit: (string) - The amount of gas to allocate for the verification step.
    • preVerificationGas: (string) - The amount of gas to pay for to compensate the bundler for pre-verification execution and calldata.
    • maxFeePerGas: (string) - Maximum fee per gas, in wei, the sender is willing to pay per gas.
    • maxPriorityFeePerGas: (string) - Maximum fee, in wei, the sender is willing to pay per gas above the base fee.
    • paymaster: (string) [optional] - Address of paymaster sponsoring the transaction, or null if none.
    • paymasterVerificationGasLimit: (string) [optional] - The amount of gas to allocate for the verification step of the paymaster, or null if no paymaster.
    • paymasterPostOpGasLimit: (string) [optional] - The amount of gas to allocate for the post-operation step of the paymaster, or null if no paymaster.
    • paymasterData: (string) [optional] - The data to pass to the paymaster during the verification step, or null if no paymaster.
    • signature: (string) - The signature data. For gas estimation, this can be a dummy signature. For example, 0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c
    • eip7702Auth: (object) [optional] - The EIP-7702 authorization data. This can be a dummy authorization for estimations:
      • address: (string) - The contract address for the authorization.
      • chainId: (string) - The chain ID.
      • nonce: (string) - The nonce.
      • r: (string) - The r component of the signature.
      • s: (string) - The s component of the signature.
      • v: (string) - The v component of the signature.
      • yParity: (string) - The y-parity value.
  • entryPoint: (string) - The entry point contract address (0x0000000071727De22E5E9d8BAf0edAc6f37da032).

  • stateOverrides: (object) [optional] - State overrides to apply for the simulation:

    • Each key is an address.
    • Each value is an object that can contain:
      • balance: (string) [optional] - The balance to set for the address.
      • nonce: (string) [optional] - The nonce to set for the address.
      • code: (string) [optional] - The code to set for the address.
      • state: (object) [optional] - Complete state to set, where each key is a 32-byte hex storage slot and each value is a 32-byte hex value.
      • stateDiff: (object) [optional] - State differences to apply, where each key is a 32-byte hex storage slot and each value is a 32-byte hex value.