The Gas Manager Admin APIs allow you to programmatically manage gas sponsorship policies. Developers can define and manage policies governing gas sponsorship behavior—such as spending limits and eligibility. Below are the Gas Manager Admin API endpoints available and the corresponding docs for each of them.
| Method | Description |
|---|---|
| create-policy | Creates a new gas manager policy with the specified rules. |
| get-policy | Returns a policy by id. |
| replace-policy | Replaces all rules in an existing policy by id. |
| delete-policy | Deletes a policy by id. |
| get-all-policies | Returns all policies. The results are paginated. |
| update-policy-status | Modifies the status of a policy to either “active” or “inactive”. |
| get-policy-stats | Returns stats about a policy specified by ID. |
| get-sponsorships | Returns a list of sponsorships associated with the specified policy ID. The results are paginated. |