/preview4337

Takes an ERC-4337 userOp object, and returns a classified transaction previewing what will happen if the userOp is executed. It includes an English description plus all relevant asset transfers tagged from the perspective of the userOp's 'sender' (the user).

Path Params
string
required

The chain name, as listed in the /chains endpoint.

Query Params
int64

The block number to preview the userOp at (optional). Leave blank to preview the userOp in the current state of the chain.

Body Params

The ERC-4337 userOp object, in exactly the same format that would be submitted to a bundler for transaction execution.

userOp
object
Headers
string
required
Defaults to demokey

API Key for Foresight API. To get an API Key, visit https://app.noves.fi/register

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json