Arka API calls
/add-policy
Creates a new policy with the provided details.
POST
/
add-policy
Example values you can use to demo the API:
Example response:
Headers
apikey
string
requiredAPI key for authentication
Body
application/json
walletAddress
string
requiredname
string
requiredisPublic
boolean
requiredisEnabled
boolean
requireddescription
string
isApplicableToAllNetworks
boolean
enabledChains
integer[]
supportedEPVersions
string[]
isPerpetual
boolean
startTime
string
endTime
string
globalMaximumApplicable
boolean
globalMaximumUsd
number
globalMaximumNative
number
globalMaximumOpCount
number
perUserMaximumApplicable
boolean
perUserMaximumUsd
number
perUserMaximumNative
number
perUserMaximumOpCount
number
perOpMaximumApplicable
boolean
perOpMaximumUsd
number
perOpMaximumNative
number
Response
201 - 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