Create address list - Webhooks

POST /address-lists creates a named address list, optionally with its first addresses. Any number of webhooks can then watch the list through list_refs, and changing the list changes what all of them match without editing the webhooks.

POST https://public-api.getblock.io/api/v1/address-lists

Use a list when you watch more than the 1,000 addresses a webhook's filter can hold, or when several webhooks share the same addresses. A list holds up to 100,000 addresses, and an account can have 50 lists. See Address lists.

Parameters

ParameterTypeRequiredDescription
namestringYesUnique per account, at most 128 bytes. Surrounding spaces are trimmed.
addressesarray of stringsNoFirst addresses, as 0x-prefixed 20-byte hex in any case. Up to 100,000 per request.

Request Example

bashcurl -X POST https://public-api.getblock.io/api/v1/address-lists \
  -H "Authorization: Bearer $GETBLOCK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Treasury wallets", "addresses": ["0x742d35cc6634c0532925a3b844bc454e4438f44e"]}'
javascriptconst response = await fetch('https://public-api.getblock.io/api/v1/address-lists', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Treasury wallets',
    addresses: ['0x742d35cc6634c0532925a3b844bc454e4438f44e']
  })
});
const list = await response.json();

console.log(list.id); // use it in a webhook's list_refs
pythonimport os
import requests

address_list = requests.post(
    "https://public-api.getblock.io/api/v1/address-lists",
    headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
    json={
        "name": "Treasury wallets",
        "addresses": ["0x742d35cc6634c0532925a3b844bc454e4438f44e"],
    },
).json()

print(address_list["id"])  # use it in a webhook's list_refs

Response Example

201 Created:

json{
  "id": "al_7hK2mPq9Wx3Z",
  "name": "Treasury wallets",
  "entry_count": 1,
  "version": 1,
  "created_at": "2026-09-25T10:00:00Z",
  "updated_at": "2026-09-25T10:00:00Z"
}

Response Parameters

FieldTypeDescription
idstringThe list's id (al_…). Send it in a webhook's list_refs.
namestringThe list's name, trimmed.
entry_countintegerHow many addresses the list holds.
versioninteger1.
created_at, updated_atstringRFC 3339 times.

To watch the list, send its id when you create or update a webhook: "list_refs": ["al_7hK2mPq9Wx3Z"].

Use Cases

  • Keep all deposit addresses of an exchange in one place for several webhooks
  • Watch more than 1,000 addresses with one webhook
  • Separate hot and cold wallets into lists that different webhooks reference

Error Handling

HTTPCodeCause
400empty_body, malformed_bodyNo body, invalid JSON, or an unknown field.
400invalid_list_namename is empty after trimming, over 128 bytes, or has control characters.
400list_name_takenYou already have a list with this name.
400filter_invalid_hexAn address is not 0x-prefixed 20-byte hex.
403plan_requiredA team account without a plan.
409cap_address_lists_exceededYou already have 50 lists.
409cap_addresses_per_list_exceededMore than 100,000 addresses.
413—The body is larger than about 5 MiB.