Skip to main content
GET
Query EOA gas abstraction fee records
The Query Gas Abstraction Fees endpoint provides access to historical fee records for transactions processed through the gas abstraction system for standard Solana wallets. Use this endpoint to track billing, analyze usage patterns, and monitor costs.
This endpoint retrieves only standard Solana wallet gas abstraction fee records. For Squads smart accounts with built-in gas abstraction, see Grid’s Smart Accounts.

Use Cases

This endpoint enables you to:
  • Track Billing History: Review all gas abstraction fees for accounting and reconciliation
  • Filter by Identifier: Group and analyze transactions by custom identifier
  • Analyze Usage Patterns: Understand fee trends over time
  • Monitor Costs: Track spending across different features or users
  • Audit Transactions: Verify fee records match your expectations

Usage Examples

Basic Query

Retrieve the first 50 fee records:

Paginated Retrieval

Fetch all fee records with pagination:

Date Range Filtering

Query fees within a specific time period:

Cost Analysis

Calculate total fees for a period:

Pagination Information

The pagination object provides navigation details:
  • page: Current page number
  • limit: Items per page
  • total_count: Total number of records matching the query
  • has_next_page: Whether additional pages are available

Response Headers

Pagination metadata is also available in response headers:
  • X-Total-Count: Total number of records
  • X-Page: Current page number
  • X-Limit: Current limit value
  • X-Next-Page: Next page number (if available)

Best Practices

Pagination Strategy

  1. Use appropriate page sizes: Start with 50-100 records per page
  2. Implement progressive loading: Fetch additional pages as needed
  3. Cache results: Store frequently accessed data to reduce API calls
  4. Handle pagination gracefully: Check has_next_page before fetching more

Performance Optimization

  1. Filter by date range: Narrow queries to specific time periods
  2. Use custom identifiers: Group related transactions for easier filtering
  3. Implement retry logic: Handle transient errors with exponential backoff
  4. Monitor rate limits: Space out requests to avoid throttling

Cost Monitoring

  1. Set up alerts: Monitor for unexpected fee spikes
  2. Regular audits: Review fee records periodically
  3. Budget tracking: Compare actual vs expected costs
  4. Usage analytics: Identify high-cost features or users

Data Retention

  • Retention Period: Fee records are retained indefinitely for billing and audit purposes
  • Historical Access: All records remain accessible from when you first started using the service
  • Data Accuracy: Records reflect the exact fees charged at transaction time

Error Handling

Invalid Custom Identifier

Solution: Ensure your custom identifier is a properly formatted UUID string.

Invalid Timestamp Format

Solution: Use ISO 8601 format for date parameters (e.g., “2024-01-01T00:00:00Z”).

Invalid Pagination Parameters

Solution: Ensure limit is within the valid range (1-1000) and offset is non-negative.

Authorizations

Authorization
string
header
required

API Key for authentication

Headers

X-Grid-Environment
string
required

The environment you're using. Can be sandbox or production.

Query Parameters

customIdentifier
string

Filter by custom identifier

Response

Successfully retrieved fee records

fees
object[]
required

List of gas abstraction fee records

pagination
object
required

Pagination information for the response