Gas Policy Rules (Legacy)
Create a gas policy rule (legacy - use /v2/fee-sponsorship for new integrations).
Changed onpost/v1/policy_rules
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v1/policy_rules
- Auth: one of:
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"functionName": "All functions",
"contract": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35",
"wildcard": true,
"gasLimit": "1000000000000000000",
"countLimit": 1,
"timeIntervalValue": 1,
"policy": "pol_7e07ae30-2a4d-48fa-803f-361da94905dd"
}Response
Successful response.
Changes
- info
the security scope
policies:writewas added to the endpoint's security schemesk
- info
- info
api operation id
CreatePolicyRuleremoved and replaced withCreateGasPolicyRuleLegacy - info
api tag
Gas Policy Rules (Legacy)added - info
api tag
PolicyRulesremoved
- info