Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Paymaster

The Openfort Paymaster enables you to sponsor transaction fees for your users. By integrating with Openfort, you can provide seamless, gasless experiences where users don't need to hold native tokens to interact with your application.

Openfort provides fee sponsorship across both EVM chains (using the ERC-4337 Paymaster standard) and Solana (using native fee payer mechanics).

EVM (Paymaster)

For EVM-compatible chains, Openfort provides a Paymaster that implements the ERC-4337 specification. The Paymaster:

  1. Receives a UserOperation from your application
  2. Validates it against your sponsorship rules
  3. Signs the operation with the paymaster's key
  4. Returns the signature for inclusion in the UserOperation

When the UserOperation is executed on-chain, the paymaster contract verifies the signature and pays for the gas on behalf of the user.

Endpoint:
https://api.openfort.io/rpc/{chainId}

Solana

For Solana, Openfort provides fee sponsorship using Solana's native fee payer mechanics. Solana has built-in support for fee sponsorship through "fee payers."

Fee sponsorship on Solana works by:

  1. Receiving a transaction from your application
  2. Validating it against your sponsorship policies
  3. Signing the transaction as the fee payer
  4. Returning the signed transaction for execution
Endpoint:
https://api.openfort.io/rpc/solana/{cluster}

Authentication

All paymaster endpoints require authentication. Include your Openfort publishable key in the Authorization header:

Authorization: Bearer YOUR_OPENFORT_PUBLISHABLE_KEY

Get your public key from the Openfort Dashboard.

Sponsorship policies

Sponsorship policies allow you to define rules for when transactions should be sponsored. Configure policies in the Openfort Dashboard to:

  • Limit sponsorship to specific contract or program interactions
  • Set spending caps per user or time period
  • Restrict sponsorship to specific chains or clusters
  • Define custom criteria based on transaction parameters

Next steps

Copyright © 2023-present Alamas Labs, Inc