Skip to Content

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:

Promise
A promise that resolves with the serialized result of the API call

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help