Predict API (Beta)
  1. Orders
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
  1. Orders

Get order by hash

GET
/orders/{hash}
Orders
Get order information by its hash (for JWT signer)

Request

Path Params
hash
string 
required
a string

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 GET 'https://api-sepolia.predict.fun/orders/'

Responses

🟢200OK
application/json
Response 200
Body
success
boolean 
required
a boolean
data
object 
required
order
object 
required
id
string 
required
a non empty string
>= 1 characters
marketId
integer 
required
an integer
currency
string 
required
a string
amount
string 
required
a non empty string
>= 1 characters
amountFilled
string 
required
a non empty string
>= 1 characters
isNegRisk
boolean 
required
a boolean
strategy
enum<string> 
required
Allowed values:
LIMITMARKET
status
enum<string> 
required
Allowed values:
OPENFILLEDEXPIREDCANCELLEDINVALIDATED
rewardEarningRate
number 
required
a number
Example
{
  "success": true,
  "data": {
    "order": {
      "hash": "string",
      "salt": "string",
      "maker": "string",
      "signer": "string",
      "taker": "0x0000000000000000000000000000000000000000",
      "tokenId": "string",
      "makerAmount": "string",
      "takerAmount": "string",
      "expiration": "string",
      "nonce": "string",
      "feeRateBps": "string",
      "side": 0,
      "signatureType": 0,
      "signature": "string"
    },
    "id": "string",
    "marketId": 0,
    "currency": "string",
    "amount": "string",
    "amountFilled": "string",
    "isNegRisk": true,
    "strategy": "LIMIT",
    "status": "OPEN",
    "rewardEarningRate": 0
  }
}
Previous
Get JWT with valid signature
Next
Get orderbook for specific market
Built with