On this page

latest contributor to this doc

Last Edit:

@gcharang

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.

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

StructureTypeDescription
pubkeystringthe pubkey to ban
reasonstringthe reason of banning

StructureTypeDescription
resultstringwhether the ban was successful

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