list_banned_pubkeys

list_banned_pubkeys

The list_banned_pubkeys method returns a list of public keys of nodes that are banned from interacting with the node executing the method.

Banned nodes cannot complete orders and order matching requests with the node executing the method.

Arguments

StructureTypeDescription
(none)

Response

StructureTypeDescription
resultmap of objects (key - pubkey in hexadecimal representation)the list of pubkeys banned by current node
result.*.typestringthe type of the ban; possible values: Manual or FailedSwap
result.*.caused_by_swapstring (optional)the uuid of the swap that triggered the ban; present only for the FailedSwap type
result.*.caused_by_eventobject (optional)the swap event that triggered the ban; present only for the FailedSwap type
result.*.reasonstring (optional)the reason for the Manual ban

📌 Examples

Command

POST list_banned_pubkeys
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "list_banned_pubkeys"
}
Show Response

Response

{
  "result": {
    "15d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732": {
      "type": "FailedSwap",
      "caused_by_event": {
        "event": {
          "data": {
            "error": "taker_swap:547] \"taker_swap:543] timeout (180.0 > 180.0)\""
          },
          "type": "NegotiateFailed"
        },
        "type": "Taker"
      },
      "caused_by_swap": "e8400870-e85a-42af-bb4f-9658ac86ffdf"
    },
    "15d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044730": {
      "type": "Manual",
      "reason": "Being Australian"
    }
  }
}