asset.list()
The asset.list()
method gets the status of all assets that ChainPatrol has reviewed in bulk.
Example
Parameters
The type
property specifies what type of asset you are querying for.
The following types are supported: URL
, PAGE
, ADDRESS
.
The status
property specifies the status of the asset you are querying for.
The following statuses are supported: BLOCKED
, ALLOWED
, UNKNOWN
.
The startDate
property specifies the start date of the time range you are querying for. The date must be in the format YYYY-MM-DD
.
The endDate
property specifies the end date of the time range you are querying for. The date must be in the format YYYY-MM-DD
.
The endDate
must be greater than or equal to the startDate
.
Return Value
The asset.list()
method returns a Promise
that resolves to an array of objects with the following properties:
The type
property specifies the type of the asset.
The following types are supported: URL
, PAGE
, ADDRESS
.
The content
property contains the content of the asset.
- In the case of a
URL
orPAGE
asset, this is the URL of the asset. - In the case of an
ADDRESS
asset, this is the wallet or contract address of the asset.
The status
property contains the status of the asset.
The following statuses are supported: UNKNOWN
, ALLOWED
, BLOCKED
.
Was this page helpful?