Predict API (Beta)
  1. ZeroDev
Predict API (Beta)
  • FAQs
  • Guides
    • Understanding the Orderbook
    • How to authenticate your API requests
    • How to create or cancel orders
  • Authorization
    • Get auth message
      GET
    • Get JWT with valid signature
      POST
  • Orders
    • Get order by hash
      GET
    • Get orderbook for specific market
      GET
    • Get orders
      GET
    • Create an order
      POST
    • Optimistically cancel orders
      POST
  • Categories
    • Get categories
      GET
    • Get category by slug
      GET
  • Markets
    • Get markets
      GET
    • Get market statistics
      GET
    • Get market last sale information
      GET
    • Get market activity
      GET
  • Positions
    • Get your positions
      GET
  • Season
    • Get leaderboard
      GET
    • Get season totals
      GET
  • Blast
    • Blast multiplier addresses
      GET
  • OAuth
    • Finalize a OAuth connection
    • Get the orders for a OAuth connection
    • Create an order for a OAuth connection
    • Cancel the orders for a OAuth connection
    • Get the positions for a OAuth connection
  • ZeroDev
    • Validate a user op
      POST
  1. ZeroDev

Validate a user op

POST
/zerodev/validate
ZeroDev

Request

Body Params application/json
projectId
string 
required
a non empty string
>= 1 characters
userOp
object 
required
sender
string 
required
a string
nonce
string 
required
a string
initCode
string 
optional
a string
callData
string 
required
a string
signature
string 
required
a string
chainId
number 
required
a number
Example
{
  "projectId": "string",
  "userOp": {
    "sender": "string",
    "nonce": "string",
    "initCode": "string",
    "callData": "string",
    "signature": "string"
  },
  "chainId": 0
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-sepolia.predict.fun/zerodev/validate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "projectId": "string",
    "userOp": {
        "sender": "string",
        "nonce": "string",
        "initCode": "string",
        "callData": "string",
        "signature": "string"
    },
    "chainId": 0
}'

Responses

🟢200OK
application/json
Response 200
Body
proceed
boolean 
required
a boolean
Example
{
  "proceed": true
}
Previous
Get the positions for a OAuth connection
Built with