POST
/
transactions
/
eoa
/
gas-abstraction
Abstract transaction fees
curl --request POST \
  --url https://grid.squads.xyz/api/grid/v1/transactions/eoa/gas-abstraction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "transaction": "base64encodedtransaction...",
  "currency": "USDC"
}'
{
  "transaction": "<string>",
  "fee": {
    "total_fee_in_lamports": 123,
    "total_fee_in_currency": "<string>",
    "currency": "USDC",
    "price_per_sol": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication with Bearer token. Include the API key in the Authorization header as 'Bearer YOUR_API_KEY'

Query Parameters

customIdentifier
string

Custom identifier for tracking

Body

application/json

Response

200
application/json

Transaction fees abstracted successfully

The response is of type object.