Skip to main content
GET
/
custodians
/
me
/
gas-sponsors
/
chains
/
{chainId}
/
usage
Get historical gas sponsorship usage (deprecated)
curl --request GET \
  --url https://api.portalhq.io/api/v3/custodians/me/gas-sponsors/chains/{chainId}/usage \
  --header 'Authorization: Bearer <token>'
{
  "address": "75ZfLXXsSpycDvHTQuHnGQuYgd2ihb6Bu4viiCCQ7P4H",
  "chainId": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
  "usageData": [
    {
      "month": "June",
      "year": 2025,
      "usage": "0.011249279999999794",
      "txCount": 921
    },
    {
      "month": "May",
      "year": 2025,
      "usage": "0.01",
      "txCount": 2
    }
  ],
  "totalUsage": "0.021249279999999794",
  "totalTxsSponsored": 923
}

Authorizations

Authorization
string
header
required

Portal API Key (Custodian API Key). Pass as a Bearer token in the Authorization header.

Path Parameters

chainId
string
required

The CAIP-2 chain ID. Be sure the colon (:) is URI-encoded as %3A in the URL.

Response

Gas usage retrieved successfully

address
string

Your gas sponsor's address.

chainId
string
usageData
object[]
totalUsage
string
totalTxsSponsored
integer