On this page

latest contributor to this doc

Last Edit:

@smk762

Ban Pubkey

API-v1ban_pubkey

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

Use the secp256k1 pubkey without prefix for this method input. E.g. if pubkey is 022cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420 you should submit 2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420.

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

ParameterTypeDescription
resultstringWhether the ban was successful

ban_pubkey

POST
ban_pubkey
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "ban_pubkey",
  "pubkey": "2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420",
  "reason": "test",
  "duration_min": 15
}