Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Assets

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Assets(connection: ClientConnection): Assets
  • Assets - Used for retrieving assets.

    Parameters

    • connection: ClientConnection

      message-event-channel connection

    Returns Assets

Properties

Private connection

connection: ClientConnection

message-event-channel connection

Methods

getById

  • getById(id: string): Promise<Asset | Error>
  • Get an asset by id

    Example

    try {
      const asset = await sdk.asset.getById('123-456');
    
      console.log(asset)
    } catch (e) {
      // Could not get asset
      ...
    }
    

    Parameters

    • id: string

    Returns Promise<Asset | Error>

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited property
  • Protected property

Generated using TypeDoc