Alchemy · JSON Structure

Alchemy Gas Manager Api Policy Structure

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

Type: object Properties: 6
Web3BlockchainRPCNFTIndexingAccount Abstraction

Gas Manager Policy is a JSON Structure definition published by Alchemy, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

policyId name status network maxSpendPerUser maxSpendTotal

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/alchemy/refs/heads/main/json-structure/alchemy-gas-manager-api-policy-structure.json",
  "name": "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": "double",
      "description": "Maximum ETH spend per user address covered by this policy.",
      "example": 1.0
    },
    "maxSpendTotal": {
      "type": "double",
      "description": "Maximum total ETH spend across all users for this policy.",
      "example": 1000.0
    }
  }
}