LI.FI — Get gas prices for enabled chains
Retrieve gas prices for enabled chains with the LI.FI API. Use the operation’s published request contract for the selected endpoint. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
LI.FI — Get gas prices for enabled chains
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
1objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
10objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
14objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
25objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
30objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
40objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
50objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
56objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
88objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
100objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
122objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
130objectfastintegerfastestintegerlastUpdatedintegerstandardinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
"1"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"10"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"14"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"25"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"30"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"40"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"50"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"56"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"88"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"100"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"122"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
"130"?: {
fast?: number;
fastest?: number;
lastUpdated?: number;
standard?: number;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
lifiCurrent LI.FI — Get gas prices for enabled chains · GET · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/lifi/v1/gas/prices- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/lifi/v1/gas/prices' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
No input fields are required by this API contract.
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"1": {
"fast": 56309338,
"fastest": 186614317,
"lastUpdated": 1793258460,
"standard": 47490151
},
"10": {
"fast": 417,
"fastest": 1000,
"lastUpdated": 1793258460,
"standard": 400
},
"14": {
"fast": 1780000000000,
"fastest": 1845000000000,
"lastUpdated": 1793258461,
"standard": 1715000000000
},
"25": {
"fast": 385540000000,
"fastest": 434757704906,
"lastUpdated": 1793258460,
"standard": 378750000000
},
"30": {
"fast": 37970000,
"fastest": 41050000,
"lastUpdated": 1793258461,
"standard": 34890000
},
"40": {
"fast": 6305245382780,
"fastest": 7881556728476,
"lastUpdated": 1793258460,
"standard": 5254371152317
},
"50": {
"fast": 16524000444,
"fastest": 20655000555,
"lastUpdated": 1793258460,
"standard": 13770000370
},
"56": {
"fast": 50000001,
"fastest": 70783094,
"lastUpdated": 1793258460,
"standard": 50000000
},
"88": {
"fast": 900000000,
"fastest": 1125000000,
"lastUpdated": 1793258460,
"standard": 750000000
},
"100": {
"fast": 1180000000,
"fastest": 1180000000,
"lastUpdated": 1793258460,
"standard": 170000000
},
"122": {
"fast": 20000000000,
"fastest": 30000000000,
"lastUpdated": 1793258460,
"standard": 20000000000
},
"130": {
"fast": 780000,
"fastest": 845000,
"lastUpdated": 1793258461,
"standard": 715000
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# LI.FI — Get gas prices for enabled chains
Retrieve gas prices for enabled chains with the LI.FI API. Use the operation’s published request contract for the selected endpoint. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
## Available implementations
lifi · LI.FI — Get gas prices for enabled chains: https://openany.si/markets/apis/capabilities/lifi-li-fi-get-gas-prices-for-enabled-chains?offering=b76eaf7a-7734-48fe-8135-783b93ee509b · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/lifi-li-fi-get-gas-prices-for-enabled-chains
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/lifi/v1/gas/prices
Price: $0 / call
Provider: lifi
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/lifi/v1/gas/prices' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "LI.FI — Get gas prices for enabled chains",
"endpoint": "https://api.openany.si/v1/agent-apis/lifi/v1/gas/prices",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"1": {
"fast": 56309338,
"fastest": 186614317,
"lastUpdated": 1793258460,
"standard": 47490151
},
"10": {
"fast": 417,
"fastest": 1000,
"lastUpdated": 1793258460,
"standard": 400
},
"14": {
"fast": 1780000000000,
"fastest": 1845000000000,
"lastUpdated": 1793258461,
"standard": 1715000000000
},
"25": {
"fast": 385540000000,
"fastest": 434757704906,
"lastUpdated": 1793258460,
"standard": 378750000000
},
"30": {
"fast": 37970000,
"fastest": 41050000,
"lastUpdated": 1793258461,
"standard": 34890000
},
"40": {
"fast": 6305245382780,
"fastest": 7881556728476,
"lastUpdated": 1793258460,
"standard": 5254371152317
},
"50": {
"fast": 16524000444,
"fastest": 20655000555,
"lastUpdated": 1793258460,
"standard": 13770000370
},
"56": {
"fast": 50000001,
"fastest": 70783094,
"lastUpdated": 1793258460,
"standard": 50000000
},
"88": {
"fast": 900000000,
"fastest": 1125000000,
"lastUpdated": 1793258460,
"standard": 750000000
},
"100": {
"fast": 1180000000,
"fastest": 1180000000,
"lastUpdated": 1793258460,
"standard": 170000000
},
"122": {
"fast": 20000000000,
"fastest": 30000000000,
"lastUpdated": 1793258460,
"standard": 20000000000
},
"130": {
"fast": 780000,
"fastest": 845000,
"lastUpdated": 1793258461,
"standard": 715000
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/lifi/v1/gas/prices' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "1": { "fast": 56309338, "fastest": 186614317, "lastUpdated": 1793258460, "standard": 47490151 }, "10": { "fast": 417, "fastest": 1000, "lastUpdated": 1793258460, "standard": 400 }, "14": { "fast": 1780000000000, "fastest": 1845000000000, "lastUpdated": 1793258461, "standard": 1715000000000 }, "25": { "fast": 385540000000, "fastest": 434757704906, "lastUpdated": 1793258460, "standard": 378750000000 }, "30": { "fast": 37970000, "fastest": 41050000, "lastUpdated": 1793258461, "standard": 34890000 }, "40": { "fast": 6305245382780, "fastest": 7881556728476, "lastUpdated": 1793258460, "standard": 5254371152317 }, "50": { "fast": 16524000444, "fastest": 20655000555, "lastUpdated": 1793258460, "standard": 13770000370 }, "56": { "fast": 50000001, "fastest": 70783094, "lastUpdated": 1793258460, "standard": 50000000 }, "88": { "fast": 900000000, "fastest": 1125000000, "lastUpdated": 1793258460, "standard": 750000000 }, "100": { "fast": 1180000000, "fastest": 1180000000, "lastUpdated": 1793258460, "standard": 170000000 }, "122": { "fast": 20000000000, "fastest": 30000000000, "lastUpdated": 1793258460, "standard": 20000000000 }, "130": { "fast": 780000, "fastest": 845000, "lastUpdated": 1793258461, "standard": 715000 } }