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/addons

Parameters

ParameterTypeRequiredDescription
limitintegerNoQuery parameter. Page size. Default 20, at most 100.
offsetintegerNoQuery parameter. Items to skip. Default 0.
searchstringNoQuery parameter. Case-insensitive substring of the id or the name, such as mev.
protocolstringNoQuery 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

FieldTypeDescription
totalintegerAdd-ons matching the filters, before limit and offset.
limitintegerPage size applied.
offsetintegerItems skipped.
addons[].idstringWhat to send as addon when creating a token.
addons[].namestringDisplay name.
addons[].descriptionstringWhat the add-on does.
addons[].documentation_urlstringLink to the add-on's docs. Empty when it has none.
addons[].protocolsarray of stringsProtocols 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 addon id for an MEV-protected endpoint
  • Check which chains offer an add-on

Error Handling

HTTPCause
401Missing or invalid API key.
502A GetBlock service behind the API did not answer. Retry later.

Error bodies carry an error message and a request_id. See Errors.