# Gas Manager — Hanzo AI

> Paymaster-as-a-Service for account abstraction. Sponsor gas fees, set limits per user and per operation, and let users transact without a native token.

Available Now

# Gas Manager

Sponsor gas for your users

Paymaster-as-a-Service for account abstraction. Sponsor gas fees, set limits per user and per operation, and let users transact without a native token.

### Gas Sponsorship

Pay gas fees on behalf of your users for frictionless UX.

### Spending Policies

Set limits per user, per operation, or per time period.

### User Whitelisting

Control which users can access sponsored transactions.

### Multi-chain

Sponsor gas across Ethereum, Polygon, Arbitrum, and more.

[Back to Web3 Overview](https://hanzo.ai/blockchain)

## Get Your API Key

Start building in under 5 minutes

HA

Failover

<50ms

Latency

100+

Chains

Start Building Free

View Documentation

No credit card required. Free tier includes 300M compute units/month.

Trusted by developers building:

DeFiNFTsPaymentsGamingAI Agents

## Key Capabilities

Everything you need, nothing you don&#x27;t.

### Gas Sponsorship

Pay gas fees on behalf of your users for frictionless UX.

### Spending Policies

Set limits per user, per operation, or per time period.

### User Whitelisting

Control which users can access sponsored transactions.

### Multi-chain

Sponsor gas across Ethereum, Polygon, Arbitrum, and more.

### Custom Paymasters

Deploy custom paymaster logic for advanced use cases.

### ERC-20 Gas Payment

Let users pay gas in stablecoins or your app token.

### Real-time Balance

Monitor sponsor balance and usage in real-time.

### Auto-refill

Automatic balance top-up when running low.

### Usage Analytics

Track sponsored gas by user, operation, and chain.

## Simple to Integrate

Get started with just a few lines of code. SDKs for every language.

Solidity

Node

Python

Go

Rust

C

C++

Ruby

GaslessApp.sol

```
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@hanzo/gas/IHanzoPaymaster.sol"; import "@account-abstraction/contracts/core/BasePaymaster.sol"; contract HanzoPaymaster is BasePaymaster { mapping(address => bool) public whitelistedContracts; mapping(address => uint256) public userGasUsed; uint256 public maxGasPerUser = 0.01 ether; constructor(IEntryPoint _entryPoint) BasePaymaster(_entryPoint) {} // Validate paymaster will sponsor this UserOp function _validatePaymasterUserOp( UserOperation calldata userOp, bytes32 userOpHash, uint256 maxCost ) internal override returns (bytes memory context, uint256 validationData) { address target = address(bytes20(userOp.callData[16:36])); require(whitelistedContracts[target], "Contract not whitelisted"); require( userGasUsed[userOp.sender] + maxCost

## Built For

### Onboarding

Remove gas friction for new users entering Web3.

### Gaming

Sponsor in-game transactions so players never stop to buy gas.

### NFT Minting

Cover gas for NFT drops and collection mints.

### Enterprise Apps

Abstract blockchain complexity for business users.

## Supported Chains

EthereumPolygonArbitrumOptimismBaseBNB ChainAvalanchezkSyncLinea

## Start Building with Gas Manager

Get your free API key and ship your first request in under 5 minutes. No credit card required.

Get Your API Key

[Explore All Web3 Products](https://hanzo.ai/blockchain)

## Get Gas Manager

Deploy in seconds or self-host with the open-source release.

[Deploy to Cloud](https://console.hanzo.ai/deploy)
