Get Asset Information

Stash API offers an API endpoint for retrieving information about a specific NFT asset that is lent to Stash.

You can call getAsset function under api object of the core class to make the API call. This function has following declaration, parameters and response:


async getAsset(contractAddress: string, tokenId: string)


  • contractAddress: Address of the NFT contract which the queried assets belong to
  • tokenId: Token ID of the NFT

Example Usage

const asset = stash.api.getAsset("0x0493kdffE92m34kS29lI1942EdaW21", 123456);

Sample Response