List add-ons - Platform API
GET /addons lists the add-ons that can be attached to a Shared Node token, each once, with the protocols that offer it. Broadly available add-ons come first.
GET https://public-api.getblock.io/api/v1/addonsParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Query parameter. Page size. Default 20, at most 100. |
offset | integer | No | Query parameter. Items to skip. Default 0. |
search | string | No | Query parameter. Case-insensitive substring of the id or the name, such as mev. |
protocol | string | No | Query parameter. Only add-ons offered on this protocol, such as eth. |
Request Example
bashcurl 'https://public-api.getblock.io/api/v1/addons?protocol=eth' \
-H "Authorization: Bearer $GETBLOCK_API_KEY"javascriptconst response = await fetch('https://public-api.getblock.io/api/v1/addons?protocol=eth', {
headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
const body = await response.json();
console.log(body.addons.map((a) => a.id));pythonimport os
import requests
body = requests.get(
"https://public-api.getblock.io/api/v1/addons",
headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
params={"protocol": "eth"},
).json()
print([a["id"] for a in body["addons"]])Response Example
json{
"total": 2,
"limit": 20,
"offset": 0,
"addons": [
{
"id": "mevprotected",
"name": "MEV protected",
"description": "Sends transactions through a private route to protect them from front-running and sandwich attacks.",
"documentation_url": "https://docs.getblock.io/add-ons/mev-protection",
"protocols": ["eth", "bsc", "base", "sol", "unichain"]
},
{
"id": "mevprotectedrelay",
"name": "MEV protected - Relay",
"description": "MEV protection through a relay.",
"documentation_url": "",
"protocols": ["eth"]
}
]
}Response Parameters
| Field | Type | Description |
|---|---|---|
total | integer | Add-ons matching the filters, before limit and offset. |
limit | integer | Page size applied. |
offset | integer | Items skipped. |
addons[].id | string | What to send as addon when creating a token. |
addons[].name | string | Display name. |
addons[].description | string | What the add-on does. |
addons[].documentation_url | string | Link to the add-on's docs. Empty when it has none. |
addons[].protocols | array of strings | Protocols that offer the add-on. |
Where exactly an add-on is served (network, sync mode, and API type) is in GET /protocols/{id}.
Use Cases
- Find the
addonid for an MEV-protected endpoint - Check which chains offer an add-on
Error Handling
| HTTP | Cause |
|---|---|
| 401 | Missing or invalid API key. |
| 502 | A GetBlock service behind the API did not answer. Retry later. |
Error bodies carry an error message and a request_id. See Errors.