Skip to main content
Module

x/lucid/src/mod.ts>C.MultiAsset#get_asset

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Go to Latest
method C.MultiAsset.prototype.get_asset
import { C } from "https://deno.land/x/lucid@0.10.1/src/mod.ts";
const { MultiAsset } = C;

returns the amount of asset {asset_name} under policy {policy_id} If such an asset does not exist, 0 is returned.

Parameters

policy_id
asset_name