Skip to main content
Module

x/lucid/mod.ts>C.MultiAsset#set_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.set_asset
import { C } from "https://deno.land/x/lucid@0.10.6/mod.ts";
const { MultiAsset } = C;

sets the asset {asset_name} to {value} under policy {policy_id} returns the previous amount if it was set, or else None (undefined in JS)

Parameters

policy_id
asset_name
value