Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lucid/src/core/wasm_modules/cardano_multiplatform_lib_web/cardano_multiplatform_lib.d.ts>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 MultiAsset.prototype.set_asset
import { MultiAsset } from "https://deno.land/x/lucid@0.7.8/src/core/wasm_modules/cardano_multiplatform_lib_web/cardano_multiplatform_lib.d.ts";

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: ScriptHash
asset_name: AssetName
value: BigNum

Returns

BigNum | undefined