assetsApi
function
assetsApi
Signature
assetsApi(asset: object, functionName: string, args: any[]): Promise
Proxy function to perform API calls on an asset, calling the appropriate method on the asset's API.
Serializes arguments for the API call and deserializes the response.
Parameters:
asset: object
The asset object to call the API on
functionName: string
Name of the function to call on the asset's API
args: any[]
Arguments for the function
Returns:
PromiseA promise that resolves with the serialized result of the API call
