Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetWebService

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected http

http: Http

Protected options

Static Protected instance

instance: AssetWebService

Methods

create

  • create(asset: AssetSchema): Promise<Asset>
  • Create a new Asset in the platform.

    Parameters

    • asset: AssetSchema

      The Asset schema.

    Returns Promise<Asset>

destroy

  • Destroys an amount of Assets from a specific wallet. If none supplied, will be destroyed from the mediator wallet.

    Parameters

    Returns Promise<Payment>

emit

  • Emits an Asset to a specific wallet. If none supplied, will be emited to the mediator wallet.

    Parameters

    Returns Promise<Payment>

findAll

  • findAll(pagination: Pagination): Promise<PaginatedArray<Asset>>
  • Find all Assets in the platform.

    Parameters

    • pagination: Pagination

    Returns Promise<PaginatedArray<Asset>>

findOne

  • findOne(id: string): Promise<Asset>
  • Find an Asset based on its ID.

    Parameters

    • id: string

      The Asset ID.

    Returns Promise<Asset>

Static getInstance

Static initialize

Generated using TypeDoc