Alchemy · Schema

Gas Manager Policy

A gas sponsorship policy defining rules for covering user operation gas fees.

Web3BlockchainRPCNFTIndexingAccount Abstraction

Properties

Name Type Description
policyId string Unique identifier for the policy.
name string Display name for the policy.
status string Current status of the policy.
network string Blockchain network the policy applies to.
maxSpendPerUser number Maximum ETH spend per user address covered by this policy.
maxSpendTotal number Maximum total ETH spend across all users for this policy.
View JSON Schema on GitHub

JSON Schema

alchemy-gas-manager-api-policy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/alchemy/refs/heads/main/json-schema/alchemy-gas-manager-api-policy-schema.json",
  "title": "Gas Manager Policy",
  "description": "A gas sponsorship policy defining rules for covering user operation gas fees.",
  "type": "object",
  "properties": {
    "policyId": {
      "type": "string",
      "description": "Unique identifier for the policy.",
      "example": "pol-abc123"
    },
    "name": {
      "type": "string",
      "description": "Display name for the policy.",
      "example": "Default Sponsorship Policy"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "expired"
      ],
      "description": "Current status of the policy.",
      "example": "active"
    },
    "network": {
      "type": "string",
      "description": "Blockchain network the policy applies to.",
      "example": "eth-mainnet"
    },
    "maxSpendPerUser": {
      "type": "number",
      "format": "double",
      "description": "Maximum ETH spend per user address covered by this policy.",
      "example": 1.0
    },
    "maxSpendTotal": {
      "type": "number",
      "format": "double",
      "description": "Maximum total ETH spend across all users for this policy.",
      "example": 1000.0
    }
  }
}