GET
/
policy
/
wallet-address
/
{walletAddress}
/
ep-version
/
{epVersion}
/
latest

Example values you can use to demo the API:

{
  "pathVariables": {
    "walletAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
    "epVersion": "EPV_06"
  }
}

Example response:

{
    "id": 2,
    "walletAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
    "name": "Sample Policy",
    "description": "This is a sample policy",
    "isPublic": true,
    "isEnabled": true,
    "isApplicableToAllNetworks": false,
    "enabledChains": [
        80002
    ],
    "supportedEPVersions": [
        "EPV_06",
        "EPV_07"
    ],
    "isPerpetual": false,
    "startTime": "2024-06-24T00:40:00.000Z",
    "endTime": "2024-06-25T23:59:59.999Z",
    "globalMaximumApplicable": true,
    "globalMaximumUsd": "5000.0000",
    "globalMaximumNative": "1000.000000000000000000",
    "globalMaximumOpCount": 1000,
    "perUserMaximumApplicable": true,
    "perUserMaximumUsd": "100.0000",
    "perUserMaximumNative": "200.000000000000000000",
    "perUserMaximumOpCount": 50,
    "perOpMaximumApplicable": true,
    "perOpMaximumUsd": "10.0000",
    "perOpMaximumNative": "20.000000000000000000",
    "addressAllowList": null,
    "addressBlockList": null,
    "createdAt": "2024-06-26T19:50:09.475Z",
    "updatedAt": "2024-06-26T19:50:09.475Z"
}

Path Parameters

walletAddress
string
required

The wallet address to find the policy for.

epVersion
string
required

The EP version to find the policy for.

Response

200 - application/json
createdAt
string
updatedAt
string
id
integer
walletAddress
string
name
string
description
string
isPublic
boolean
isEnabled
boolean
isApplicableToAllNetworks
boolean
enabledChains
integer[]
supportedEPVersions
string[]
isPerpetual
boolean
startTime
string
endTime
string
globalMaximumApplicable
boolean
globalMaximumUsd
string
globalMaximumNative
string
globalMaximumOpCount
integer
perUserMaximumApplicable
boolean
perUserMaximumUsd
string
perUserMaximumNative
string
perUserMaximumOpCount
integer
perOpMaximumApplicable
boolean
perOpMaximumUsd
string
perOpMaximumNative
string
addressAllowList
string[] | null
addressBlockList
string[] | null