Fee Sponsorship
Enable a fee sponsorship.
Changed onEnables a fee sponsorship.
put/v2/fee-sponsorship/{feeSponsorshipId}/enable
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v2/fee-sponsorship/{feeSponsorshipId}/enable
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
feeSponsorshipIdstring required
Specifies the unique fee sponsorship ID (starts with pol_).
Response
Successful response.
Example response
{
"name": "My DeFi Gas Sponsorship",
"description": "Sponsors gas for free-tier users",
"chainId": 8453,
"enabled": true,
"strategy": {
"sponsorSchema": "pay_for_user",
"tokenContract": "con_48eeba57-2cd5-4159-a2cb-057a23a35e65",
"tokenContractAmount": "1000000000000000000",
"dynamicExchangeRate": true,
"splTokens": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"tokenContracts": [
{
"contract": "con_48eeba57-2cd5-4159-a2cb-057a23a35e65",
"amount": "1000000000000000000"
}
]
},
"paymasterId": "pay_48eeba57-2cd5-4159-a2cb-057a23a35e65",
"forwarderContractId": "cfo_48eeba57-2cd5-4159-a2cb-057a23a35e65",
"policyId": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
}Changes
- info
added the optional property
/to the response with the status - info
response property
strategy/tokenContractdeprecated - info
response property
strategy/tokenContractAmountdeprecated
- info
- info
the security scope
fee_sponsorship:writewas added to the endpoint's security schemesk - info
added the optional property
/to the response with the status - info
added the required property
to the response with the status
- info