BSV blockchainBSV blockchain

List all bans

GET/admin/bans

Query Parameters

typestring

Filter by ban type.

Response

List of bans.

statusstring
dataobject
Show data properties
bansobject[]
Show bans properties
type"domain" | "outpoint"
valuestring
reasonstring
createdAtstring<date-time>

No authentication credentials provided.

statusstring
messagestring
codestring

Stable machine-readable error code (see specs/errors.md).

Credentials provided but insufficient.

statusstring
messagestring
codestring

Stable machine-readable error code (see specs/errors.md).

Request
curl -X GET "https://{fqdn}/admin/bans?type=<type>" \
  -H "Authorization: Bearer <token>" \
  -H "Authorization: Bearer <token>"
Response
{
  "status": "string",
  "data": {
    "bans": [
      {
        "type": "domain",
        "value": "string",
        "reason": "string",
        "createdAt": "1970-01-01T00:00:00.000Z"
      }
    ]
  }
}