▪️Blocklist

You can block some users on your whiteboard, by adding their addresses to the blocklist.

Get Blocklist

This will get the whole blocklist for the given domain.


interface BlocklistItem {
  address: string;
  reason: string;
  created_by: string;
  updated_by: string;
  created_at: string;
  updated_at: string;
}


const blocklist : BlocklistItem[] = await proticoAPI.blocklist.get(domain:string);

Parameters description

ParameterDescriptionType

domain

Current domain

string

Get One from Blocklist

To get information about a particular address in the blocklist

const blocklist : BlocklistItem = await proticoAPI.blocklist.getOne(domain:string,address:string);

Parameters description

ParameterDescriptionType

domain

Current domain

string

address

Address of the account being blocked

string

Add One to Blocklist

To get information about a particular address in the blocklist

const blocklist : BlocklistItem[] = await proticoAPI.blocklist.addOne(domain:string,data:Partial<BlocklistItem>);

Parameters description

ParameterDescriptionType

domain

Current domain

string

data.address

Address of the account being blocked

string

data.reason

Reason for adding the account to the blocklist

string

Delete One from Blocklist

Remove one address from the blocklist.

const blocklist : BlocklistItem = await proticoAPI.blocklist.deleteOne(domain:string,address:string);

Parameters description

ParameterDescriptionType

domain

Current domain

string

address

Address of the account being blocked

string

Update One in the Blocklist

To update information about a particular address in the blocklist

const blocklist : BlocklistItem = await proticoAPI.blocklist.updateOne(domain:string,address:string,data:Partial<BlocklistItem>);

Parameters description

ParameterDescriptionType

domain

Current domain

string

address

Address of the account being blocked

string

data.reason

Reason for adding the account to the blocklist

string

Last updated