ban_pubkey

ban_pubkey pubkey reason

The ban_pubkey method bans the selected pubkey ignoring its order matching messages and preventing its orders from displaying in the orderbook.

Arguments

StructureTypeDescription
pubkeystringThe pubkey to ban
reasonstringOptional. The reason for banning
duration_minintegerOptional. Minutes to apply the ban. If not set, ban will persist until kdf is restarted.

Response

StructureTypeDescription
resultstringwhether the ban was successful

📌 Examples

Command

POST ban_pubkey
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "ban_pubkey",
  "pubkey": "2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420",
  "reason": "Being a naughty boy",
  "duration_min": 15
}
Show Response

Response (success)

{
  "result": "success"
}

Error (already banned)

{
  "error": "rpc:208] dispatcher_legacy:160] pubkey_banning:58] Pubkey is banned already"
}

Error (invalid pubkey)


{
  "error": "rpc:184] dispatcher_legacy:140] pubkey_banning:63] invalid value: string \"2102f7597468703c1c5c8465dd6d43acaae697df9df30bed21494d193412a1ea193eac\", expected a hash string"
}