Example

Parameters

options
object
required
type
enum<string>
required

The type property specifies what type of asset you are querying for.

The following types are supported: URL, PAGE, ADDRESS.

status
enum<string>
required

The status property specifies the status of the asset you are querying for.

The following statuses are supported: BLOCKED, ALLOWED, UNKNOWN.

startDate
string
required

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.

endDate
string
required

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:

results
object[]
required
type
enum<string>
required

The type property specifies the type of the asset.

The following types are supported: URL, PAGE, ADDRESS.

content
string
required

The content property contains the content of the asset.

  • In the case of a URL or PAGE 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.
status
enum<string>
required

The status property contains the status of the asset.

The following statuses are supported: UNKNOWN, ALLOWED, BLOCKED.