latest contributor to this doc

Last Edit: @gcharang ,

unban_pubkeys

unban_pubkeys type data

The unban_pubkeys method will remove all currently banned pubkeys from your ban list, or specific pubkeys from a user defined list.

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
unban_by.typestringAll to unban all pubkeys, or Few to provide a list of pubkeys to unban
unban_by.datalistA list of pubkeys to unbanned. Only required when type is Few.

StructureTypeDescription
resultstringWhether the ban was successful
result.still_bannedlistList of pubkeys which remain banned. For each pubkey, the reason it was banned pubkey.reason and the type of of ban pubkey.type is also returned.
result.unbannedlistList of pubkeys which were unbanned. For each pubkey, the reason it was banned pubkey.reason and the type of of ban pubkey.type is also returned.
result.were_not_bannedlistIf using unban_by.type: Few this will return a list of pubkeys which were not banned, but had been requested to be unbanned.

POST
unban_pubkeys
{
  "userpass": "testpsw",
  "method": "unban_pubkeys",
  "unban_by": {
    "type": "All"
  }
}

POST
unban_pubkeys
{
  "userpass": "testpsw",
  "method": "unban_pubkeys",
  "unban_by": {
    "type": "Few"
  },
  "data": [
    "2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420",
    "2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520422"
  ]
}